hif_setmodels¶
- hif_setmodels(vis=None, reference=None, refintent=None, transfer=None, transintent=None, reffile=None, normfluxes=None, scalebychan=None, parallel=None) ResultsList[Results][source]¶
Set calibrator source models.
The model flux density of the amplitude calibrator is set, either from an internal CASA model (solar system objects), or from the results of observatory calibrator monitoring (quasars) which ultimately appear in the file
flux.csv(seehifa_importdata). These flux densities are listed on the WebLog page, along with plots of the amplitude calibrator as a function of uv distance (which is useful to assess resolved solar system objects). If the bandpass calibrator is distinct from the amplitude calibrator and is a frequently monitored quasar, its model is also set at this stage.Set model fluxes values for calibrator reference and transfer sources using lookup values. By default the reference sources are the flux calibrators and the transfer sources are the bandpass, phase, and check source calibrators. Reference sources which are also in the transfer source list are removed from the transfer source list.
Built-in lookup tables are used to compute models for solar system object calibrators. Point source models are used for other calibrators with flux densities provided in the reference file. Normalized fluxes are computed for transfer sources if the
normfluxesparameter is set to True.The default reference file is
flux.csvin the current working directory. This file is usually created in the importdata stage. The file is in CSV format and contains the following comma-delimited columns:vis, fieldid, spwid, I, Q, U, V, pix, comment
- Parameters:
vis --
The list of input MeasurementSets. Defaults to the list of MeasurementSets specified in the pipeline context.
Example:
['M32A.ms', 'M32B.ms']reference --
A string containing a comma delimited list of field names defining the reference calibrators. Defaults to field names with intent 'AMPLITUDE'.
Example:
'M82,3C273'refintent --
A string containing a comma delimited list of intents used to select the reference calibrators. Defaults to 'AMPLITUDE'.
Example:
'BANDPASS'transfer --
A string containing a comma delimited list of field names defining the transfer calibrators. Defaults to field names with intent ''.
Example:
'J1328+041,J1206+30'transintent --
A string containing a comma delimited list of intents defining the transfer calibrators. Defaults to
'BANDPASS,PHASE,CHECK'.''stands for no transfer sources.Example:
'PHASE'reffile --
The reference file containing a lookup table of point source models This file currently defaults to 'flux.csv' in the working directory. This file must conform to the standard pipeline 'flux.csv' format
Example:
'myfluxes.csv'normfluxes -- Normalize the transfer source flux densities.
scalebychan -- Scale the flux density on a per channel basis or else on a per spw basis
parallel --
Process multiple MeasurementSets in parallel using the casampi parallelization framework.
Options:
'automatic','true','false',True,FalseDefault:
None(equivalent toFalse)
Notes
QA Scoring
The QA score is set to 1.0 if the flux density of the amplitude calibrator is successfully set for all spectral windows and if the spectral index of the bandpass calibrator is set; otherwise it is set to 0.0.
- Returns:
The results object for the pipeline task is returned.
Examples
Set model fluxes for the flux, bandpass, phase, and check sources.
>>> hif_setmodels()