nraonrao
 
NRAO Home > CASA > CasaRef
ms.nrow - Function

1.2.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.nrow()  
      #Number of rows in ms = 7669  
    

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.