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

1.3.1 Returns the number of rows in the measurement set


Description

This function returns the number of rows in the measurement set. If the optional argument selected is set to True, it returns the number of currently selected rows, otherwise it returns the the number of rows in the original measurement.

Arguments





Inputs

selected

return number of selected rows

allowed:

bool

Default:

false

Returns
int

Example

 
 
      ms.open(’3C273XC1.MS’)  
      print "Number of rows in ms =", ms.nrow2()  
      ms.msselect({’field’:’3C273’})  
      print "Number of rows in selected ms =", ms.nrow2(True)  
 

__________________________________________________________________


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