pipeline.hifv.cli.hifv_importdata

pipeline.hifv.cli.hifv_importdata = <pipeline.hifv.cli.hifv_importdata._hifv_importdata object>

hifv_importdata —- Imports data into the VLA pipeline

The hifv_importdata task loads the specified visibility data into the pipeline context unpacking and / or converting it as necessary.

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

vis List of visibility data files. These may be ASDMs, tar files of ASDMs,

MSes, or tar files of MSes, If ASDM files are specified, they will be converted to MS format. example: vis=[‘X227.ms’, ‘asdms.tar.gz’]

session List of sessions to which the visibility files belong. Defaults

to a single session containing all the visibility files, otherwise a session must be assigned to each vis file. example: session=[‘Session_1’, ‘Sessions_2’]

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 user can check the settings of all pipeline parameters without running the task.

asis ASDM to convert as is

Only can be set in pipelinemode=’interactive’ examples: ‘Receiver CalAtmosphere’ ‘Receiver’, ‘’

overwrite Only can be set in pipelinemode=’interactive’ nocopy When importing an MS, disable copying of the MS to the working directory.

Only can be set in pipelinemode=’interactive’

createmms Create a multi-MeasurementSet (‘true’) ready for parallel

processing, or a standard MeasurementSet (‘false’). The default setting (‘automatic’) creates an MMS if running in a cluster environment.

ocorr_mode Read in cross- and auto-correlation data(ca), cross-

correlation data only (co), or autocorrelation data only (ao).

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

do not execute (False). This is a pipeline task execution mode.

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

reject them (False). This is a pipeline task execution mode.

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

Output:

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

Examples

  1. Load an ASDM list in the ../rawdata subdirectory into the context.

hifv_importdata (vis=[‘../rawdata/uid___A002_X30a93d_X43e’, ‘../rawdata/uid_A002_x30a93d_X44e’])

  1. Load an MS in the current directory into the context.

hifv_importdata (vis=[uid___A002_X30a93d_X43e.ms])

  1. Load a tarred ASDM in ../rawdata into the context.

hifv_importdata (vis=[‘../rawdata/uid___A002_X30a93d_X43e.tar.gz’])

  1. Check the hifv_importdata inputs, then import the data

myvislist = [‘uid___A002_X30a93d_X43e.ms’, ‘uid_A002_x30a93d_X44e.ms’] hifv_importdata(vis=myvislist, pipelinemode=’getinputs’) hifv_importdata(vis=myvislist)

  1. Load an ASDM but check the results before accepting them into the context.

results = hifv_importdata (vis=[‘uid___A002_X30a93d_X43e.ms’], acceptresults=False) results.accept()

6. Run in dryrun mode before running for real results = hifv_importdata (vis=[‘uid___A002_X30a93d_X43e.ms’], dryrun=True) results = hifv_importdata (vis=[‘uid___A002_X30a93d_X43e.ms’])