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

1.3.1 Query if there are more iterations left in the iterator. Use this method instead of the older iterend() method which is marked for deprecation.


Description

The serves redundant purpose and is here only for backward compatibility.

This method returns True if there are no more iterations left. I.e., the iterations have ended. This same information is also returned by niternext().

With the use of the VisibilityIterator in the niterinit(), niterorigin(), niternext() methods, the iterator is set to the original state by calling niterinit() at any time.

See the example below.

Arguments





Returns
bool

Example

 
       ms.open("3C273XC1.MS")  
       staql={’baseline’:’1 & 2’};  
       ms.msselect(staql);  
       ms.niterinit([" "],60.0)  
       ms.niterorigin()  
       while (!ms.niterend()):  
          rec=ms.ngetdata(["u","v","data"])  
          ms.niternext()  
       ms.close()  
 
       We open the MS, select a baseline and then specify an iteration  
       over time, with a 60s time interval.  We then set the iterator  
       to the start of the data and get out some data.  We advance the  
       iterator to the next lot of data and continue till the end of  
       iterations is indicated.  Finally, we close the ms tool which  
       restores the tool to its original state.  

__________________________________________________________________


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