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

5.1.2 Scale spectra by the given factor
Description

Return a scan where all spectra are scaled by the given ’factor’. The factor can be a float or one- or two-dimensional float array. If it is one-dimensional array, the scaling will be done in channel-by-channel manner. If it is two-dimensional, the scaling will be done in element-by-element or row-by-row manner.

If insitu is True, or insitu is None and sd.rcParams[’insitu’] is True, the method will not return the result, but apply operation on this scantable.

Arguments





Inputs

factor

The scaling factor

allowed:

float, float array

Default:

insitu

If False a new scantable is returned

allowed:

bool

Default:

None

tsys

If True then apply the operation to Tsys as well as the data

allowed:

bool

Default:

True





Returns
scantable

Example


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