NRAO Home > CASA > CASA Toolkit Reference Manual
simulator.setspwindow - Function

2.4.1 Set one or more spectral windows


Description

Set one or more spectral windows for the observations, including starting frequency, number of channels, channel increment and resolution, and stokes parameters observed. Can be invoked multiple times for a complex observation. Must be invoked at least once before observe.

Arguments





Inputs

spwname

Unique user-supplied name for this spectral window

allowed:

string

Default:

XBAND

’XBAND’

freq

Starting frequency

allowed:

any

Default:

variant 8.0e9Hz

deltafreq

Frequency increment per channel

allowed:

any

Default:

variant 50e6Hz

freqresolution

Frequency resolution per channel

allowed:

any

Default:

variant 50.e6Hz

refcode

Spectral reference code e.g. LSRK, TOPO, BARY

allowed:

string

Default:

TOPO

nchannels

Number of channels

allowed:

int

Default:

1

stokes

Stokes types to simulate

allowed:

string

Default:

RR LL

’RR LL’

Returns
bool

Example

 
 
To simulate a two spectral window (or two IF’s in VLA jargon) data  
set, use setpwid as follows (here we are simulating 16 channels, 50MHz  
wide channel for each spectral window)  
 
 
sm.setspwindow(spwname=’CBAND’, freq=’2GHz’, deltafreq=’50MHz’,  
                   freqresolution=’50MHz’, nchannels=16, stokes=’RR LL’);  
 
sm.setspwindow(spwname=’SBAND’, freq=’5GHz’, deltafreq=’50MHz’,  
                   freqresolution=’50MHz’, nchannels=16, stokes=’RR LL’);  
 
 
 
Note that the spwname is used in {\tt observe} to determine which spectral window  
is used.  
 

__________________________________________________________________


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