pipeline.hsdn.cli.hsdn_importdata¶
-
pipeline.hsdn.cli.
hsdn_importdata
= <pipeline.hsdn.cli.hsdn_importdata._hsdn_importdata object>¶ hsdn_importdata —- Imports Nobeyama data into the single dish pipeline
Imports Nobeyama data into the single dish pipeline. The hsdn_importdata task loads the specified visibility data into the pipeline context unpacking and / or converting it as necessary.
Output
results – If pipeline mode is ‘getinputs’ then None is returned. Otherwise the results object for the pipeline task is returned.
——— 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.
- overwrite Overwrite existing MSes on output.
Parameter is not available when pipelinemode=’automatic’.
- nocopy Disable copying of MS to working directory.
Parameter is not available when pipelinemode=’automatic’.
createmms Create an MMS dryrun Run the task (False) or display task command (True).
Parameter is available only when pipelinemode=’interactive’.
- acceptresults results of the task to the pipeline context (True) or reject them (False).
Parameter is available only when pipelinemode=’interactive’.
——— examples ———————————————————–
Load an ASDM list in the ../rawdata subdirectory into the context:
hsdn_importdata (vis=[‘../rawdata/uid___A002_X30a93d_X43e’, ‘../rawdata/uid_A002_x30a93d_X44e’])
Load an MS in the current directory into the context:
hsdn_importdata (vis=[uid___A002_X30a93d_X43e.ms])
Load a tarred ASDM in ../rawdata into the context:
hsdn_importdata (vis=[‘../rawdata/uid___A002_X30a93d_X43e.tar.gz’])
Check the hsdn_importdata inputs, then import the data:
myvislist = [‘uid___A002_X30a93d_X43e.ms’, ‘uid_A002_x30a93d_X44e.ms’] hsdn_importdata(vis=myvislist, pipelinemode=’getinputs’) hsdn_importdata(vis=myvislist)
Load an ASDM but check the results before accepting them into the context:
results = hsdn_importdata(vis=[‘uid___A002_X30a93d_X43e.ms’], acceptresults=False) results.accept()
6. Run in dryrun mode before running for real: results = hsdn_importdata(vis=[‘uid___A002_X30a93d_X43e.ms’], dryrun=True) results = hsdn_importdata(vis=[‘uid___A002_X30a93d_X43e.ms’])