pipeline.hif.cli.gotasks.hif_setmodels

pipeline.hif.cli.gotasks.hif_setmodels = <pipeline.hif.cli.gotasks.hif_setmodels._hif_setmodels object>

hif_setmodels —- Set calibrator source models

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 for other calibrators are provided in the reference file. Normalize fluxes are computed for transfer sources if the normfluxes parameter is set to True.

The reference file default to a file called ‘flux.csv’ in the current working directory. This file is normal created in the importdata step. The file is in ‘csv’ format and contains the following comma delimited columns.

vis,fieldid,spwid,I,Q,U,V,pix,comment

Output:

results – If pipeline mode is ‘getinputs’ then None is returned. Otherwise the results object for the pipeline task is returned

——— parameter descriptions ———————————————

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 scalebychan lux density on a per channel basis or else on a per spw basis

example: False

pipelinemode The pipeline operating mode. In ‘automatic’ mode the pipeline

determines the values of all context defined pipeline inputs automatically. In interactive mode the user can set the pipeline context defined parameters manually. In ‘getinputs’ mode the users can check the settings of all pipeline parameters without running the task.

dryrun Run the commands (True) or generate the commands to be run but

do not execute (False).

acceptresults Add the results of the task to the pipeline context (True) or

reject them (False).

——— examples ———————————————————–

  1. Set model fluxes for the flux, bandpass, phase, and check sources.

hif_setmodels()