ms.iterend - Function

1.2.1 End the iteration and reset the selected table
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.

Arguments





Returns
bool

Example

 
      ms.open("3C273XC1.MS")  
      ms.selectinit(datadescid=0)  
      ms.iterinit(["ANTENNA1","ANTENNA2","TIME"],60.0)  
      ms.iterorigin()  
      rec=ms.getdata(["u","v","data"])  
      ms.iternext()  
      ms.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.

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search

Updated daily during alpha development.