NRAO Home > CASA > CASA Toolkit Reference Manual
msmetadata.chaneffbws - Function

1.3.2 Get an array of channel effective bandwidths for the specified spectral window.


Description

Get an array of channel effective bandwidths for the specified spectral window. The parameter asvel indicates if velocity widths (True) or frequency widths (False) should be returned. The unit parameter specifies the units that the returned values should have. If empty (default), ”Hz” will be used if asvel=False, or ”km/s” will be used if asvel=True.

Arguments





Inputs

spw

Spectral window ID.

allowed:

int

Default:

unit

Desired unit of returned quantities. Empty means ”Hz” if asvel=False, ”km/s” if asvel=True.

allowed:

string

Default:

asvel

Should return values be equivalent velocity widths?

allowed:

bool

Default:

false

Returns
doubleArray

Example

 
    msmd.open("my.ms")  
    # get the channel effective bandwidths for spectral window 2, in m/s  
    chan_ebw = msmd.chaneffbws(2, "m/s", True)  
    msmd.done()  

__________________________________________________________________


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