NRAO Home > CASA > CASA Toolkit Reference Manual
sd.scantable.get_mask_indices - Function

5.1.2 Compute and return lists of mask start indices and mask end indices from the given bool array
Description

Compute and Return lists of mask start indices and mask end indices. Returned value is a list of mask start indices and that of mask end indices, i.e., ([istart1,istart2,....], [iend1,iend2,....]).

Arguments





Inputs

mask

Channel mask, created with create_mask

allowed:

bool array

Default:

None





Returns
integer array

Example

   s=sd.scantable(’OrionS_rawACSmod_cal’,average=False)  
   # this is an example to show how get_mask_indices() works  
   s.get_mask_indices(s.create_mask([1000,2000],[4000,5000]))  
   ([1000, 4000], [2000, 5000])


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