Importevla

From CASA Guides
Revision as of 17:31, 25 March 2010 by Lchomiuk (talk | contribs) (Created page with '== Help on importevla task: == <pre> Convert an ALMA Science Data Model observation into a CASA visibility file Convert a Science Data Model (SDM) dataset into a CASA Measurement…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Help on importevla task:

Convert an ALMA Science Data Model observation into a CASA visibility file
Convert a Science Data Model (SDM) dataset into a CASA Measurement Set (MS)
This version is under development and is geared to handling EVLA specific flag and
system files, and is otherwise identical to importasdm.

Keyword arguments:
asdm -- Name of input SDM file (directory)
        default: none; example: asdm='ExecBlock3'

vis       -- Root ms or scantable name, note a prefix (.ms or .asap) is NOT appended to this name
             default: none

singledish   -- Set True to write data as single-dish format (Scantable)
                default: False

            >>> singledish expandable parameter
                 antenna -- antenna name or id.

corr_mode -- correlation mode to be considered on input. Could
             be one or more of the following, ao, co, ac, or all
             default: all

srt       -- spectral resolution type. Could be one or more of
             the following, fr, ca, bw, or all
             default: all

time_sampling -- specifies the time sampling, INTEGRATION and/or
                 SUBINTEGRAION. could be one or more of the following
                 i, si, or all.
                 default: all

ocorr_mode    -- output data for correlation mode AUTO_ONLY
                 (ao) or CROSS_ONLY (co) or CROSS_AND_AUTO (ca)
                 default: ca


compression  -- produces comrpressed columns in the resulting measurement set.
                default: False


asis         --  creates verbatim copies of the ASDM tables in
                 the output measurement set. The value given to
                 this option must be a list of table names separated
                 by space characters; the wildcard character '*' is
                 allowed in table names.

wvr_corrected_data -- specifies wich values are considered in the
                      ASDM binary data to fill the DATA column in
                      the MAIN table of the MS. Expected values for
                      this option are 'no' for the uncorrected data
                      (this is the default), 'yes' for the corrected
                      data and 'both' for corrected and uncorrected
                      data. In the latter case, two measurement sets
                      are created, one containing the uncorrected
                      data and the other one, whose name is suffixed
                      by '-wvr-corrected', containing the corrected
                      data.


verbose     -- produce log output as asdm2MS is being run

showversion -- report the version of the asdm2MS being used.

EVLA-specific parameters:
-------------------------

applyflags -- apply the online flags from the SDM Flag.xml table to the MS

            >>> applyflags expandable parameter
                 tbuff -- (float) time padding buffer (seconds, default=1.0)

            Examples:

                 importevla(asdm='CLowTest_000',ocorr_mode='co')

                     Produces MS CLowTest_000.ms w/o autocorrelations.
                     You will find the Antenna.xml and Flag.xml in the
                     MS directory (e.g. for later use).

                 importevla(asdm='CLowTest_000',applyflags=True)

                     Produces MS CLowTest_000.ms including the
                     Antenna.xml and Flag.xml tables.  Will also flag
                     the data using the on-line flags in the Flag.xml
                     table.

                 importevla(asdm='CLowTest_000',applyflags=True,tbuff=2.0)

                     As above, but uses a more conservative 2sec buffer
                     before the start and after the end timeranges.