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

5.1.2 Compute and return a list of mask windows [min,max] from the given bool array
Description

Compute and return a list of mask windows, [min, max]. Returned value is pairs of start/end points (inclusive) specifying the masked regions, i.e. [min, max], [min2, max2], ...

The row argument specifies the row to use for unit conversions, default is row=0. It is only necessary if frequency varies over rows.

Arguments





Inputs

mask

Channel mask, created with create_mask

allowed:

bool array

Default:

None

row

calculate the masklist using the specified row for unit conversion

allowed:

integer

Default:

0

silent

True for silent mode

allowed:

bool

Default:

False





Returns
float array

Example

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


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