|
|||
NRAO Home > CASA > CASA Toolkit Reference Manual |
|
msmetadata.chanres - Function
1.3.2 Get an array of channel resolutions for the specified spectral window.
Description
Get an array of channel resolutions 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 resolutions?
| |
| allowed: | bool |
|
| Default: | false |
|
doubleArray
Example
msmd.open("my.ms")
# get the channel resolutions for spectral window 2, in m/s
chan_res = msmd.chanres(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