Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: ms.tosdfits - Function Up: ms - Tool Previous: ms.iternext - Function


ms.iterend - Function



Package general
Module ms
Tool ms


End the iteration and reset the selected table


Synopsis
iterend()


Returns
Bool, True if iteration was in progress, False if not



Description
This sets the currently selected table (as accessed with getdata) to the table that was selected before iteration started. Use this to end the iteration prematurely. There is no need to call this if you continue iterating until iternext returns False.

See the example below.



Example
      include 'ms.g'
      myms:=ms("3C273XC1.MS");
      myms.selectinit(datadescid=1)
      myms.iterinit("antenna1 antenna2 time",60.0);
      myms.iterorigin();
      rec:=myms.getdata("u v data");
      myms.iternext();
      myms.iterend();
We open the MS, select an array and spectral window and then specify an iteration over interferometer and time, with a 60s time interval. We then set the iterator to the start of the data and get out some data. Finally we advance the iterator to the next lot of data and then end the iteration.



next up previous contents index
Next: ms.tosdfits - Function Up: ms - Tool Previous: ms.iternext - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01