NRAO Home > CASA > CASA Toolkit Reference Manual
ms.iterend - Function

1.3.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.  

__________________________________________________________________


More information about CASA may be found at the CASA web page

Copyright © 2016 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