OPT: Importing Scan Lists into SBs
Scan Lists
Recall from the previous section that scan lists can only be uploaded into an existing scheduling block in the OPT; it will not create a new scheduling block. Before uploading make sure to select API/wind conditions that match your observing requirements. The following scan syntax is a description of the latest version (see previous section). To define a scan list, the standard case-sensitive(!) text file content must start with (boldface lines are mandatory):
VERSION; 6;
SRC-CAT;sourceCatalogNames;
HDWR-CAT;hardwareCatalogNames;
These catalog lines must be included before any scan line described below, and currently also before the SCHEDBLOCK line described in the previous section (where it also says that specifying the version is optional). The following table contains a more extensive description:
Type of Line | Field | Description |
---|---|---|
SRC-CAT | sourceCatalogNames |
Mandatory, multi-value
|
HDWR-CAT | hardwareCatalogNames |
Mandatory, multi-value
|
Text files with scan lists can be imported into the OPT if they use the following syntax. Every line containing any scan information in the file must define a separate scan as one of the following options:
STD;scanName;sourceName;resourceName;timeType;time;antennaWrap;applyRefPtg?;applyPhase?;. . .
. . .recordOnMark6?;allowOverTop?;use10HzNoise?;pulsarRecording;VDIFrecording;scanIntents;comments;
PTG;scanName;sourceName;resourceName;timeType;time;antennaWrap;applyRefPtg?;applyPhase?;. . .
. . .recordOnMark6?;allowOverTop?;use10HzNoise;comments;
TIP;scanName;azimuth;resourceName;timeType;time;antennaWrap;tippingOrder;comments;
OTFM;scanName;sourceName(beg);sourceName(end);resourceName;timeType;time;numSteps;numIntPs;. . .
. . .RAdirection;antennaWrap;applyRefPtg?;applyPhase?;recordOnMark6?;allowOverTop?;use10HzNoise;comments; SOL;scanName;sourceName;resourceName;timeType;time;antennaWrap;applyRefPtg?;applyPhase?;. . .
. . .recordOnMark6?;allowOverTop?;use10HzNoise?;pulsarRecording;VDIFrecording;scanIntents;solarHwCfg;comments;
Standard, Pointing, On-the-fly Mosaicking, and Solar Mode Scans
Standard observing mode, or STD-scans, require 15 additional fields (in the numbered order below) and 16 semi-colons (;), including the last. Pointing mode scans, or PTG-scans, necessary only for observations at the higher frequencies (Ku, K, Ka, Q), have 12 additional fields and 13 semi-colons, including the last. Similarly, Tipping mode scans, or TIP-scans, are described with 8 additional fields and 9 semi-colons including the last. On-the-fly Mosaicking (OTFM, introduced in version 3) scans are defined with 16 additional fields and 17 semi-colons. These modes were complemented (in version 4) by Solar mode scans, or SOL-scans, and require 16 additional fields and 17 semi-colons (which fields aren't exactly the same as for OTFM). The following table contains a more extensive description of the fields for STD, PTG, OTFM or SOL lines (other scans further below):
Order | Field | Description | |||
STD | PTG | OTFM | SOL | ||
1 | 1 | 1 | 1 | scanName |
Optional, single value (defaults to the source name (below) or [New Scan])
|
2 | 2 | 2, 3 | 2 | sourceName |
Mandatory, single value
|
3 | 3 | 4 | 3 | resourceName |
Mandatory, single value
|
4 | 4 | 5 | 4 | timeType |
Optional, single value (defaults to Duration LST), not case-sensitive
|
5 | 5 | 6 | 5 | time |
Mandatory, single value
|
- | - | 7 | - | numSteps (OTFM-scan only) |
Mandatory, single value (introduced in version 3)
|
- | - | 8 | - | numIntPs (OTFM-scan only) |
Mandatory, single value (introduced in version 3)
|
- | - | 9 | - | RAdirection (OTFM-scan only) |
Mandatory, single character (introduced in version 3)
|
6 | 6 | 10 | 6 | antennaWrap |
Optional, single value (defaults to No Preference), not case-sensitive
|
7 | 7 | 11 | 7 | applyRefPtg? |
Mandatory, single value, not case-sensitive
|
8 | 8 | 12 | 8 | applyPhase? |
Optional and only for phased VLA observations, single value (defaults to N), not case-sensitive
|
9 | 9 | 13 | 9 | recordOnMark6? |
Optional and only for phased VLA VLBI observations, single value (defaults to N), not case-sensitive
|
10 | 10 | 14 | 10 | allowOverTop? |
Optional, single value (defaults to N), not case-sensitive
|
11 | 11 | 15 | 11 | use10HzNoise? |
Optional, single value (defaults to Y), not case-sensitive (introduced in version 5)
|
12 | - | - | 12 | pulsarRecording |
Optional, single value (defaults to N), not case-sensitive (introduced in version 6)
|
13 | - | - | 13 | VDIFrecording |
Optional, single value (defaults to N), not case-sensitive (introduced in version 6)
|
14 | - | - | 14 | scanIntents (STD-scan only) |
Mandatory, multi-value, not case-sensitive
|
- | - | - | 15 | solarHwCfg (SOL-scan only) |
Optional, single integer value (defaults to 1) (introduced in version 4)
|
15 | 12 | 16 | 16 | comments |
Optional, single value
|
Note that in principle only a single one of STD/PTG/TIP/OTFM/SOL scans in the scan list is required, but it does not make sense to not have any STD-scan in a normal observation scheduling block (as any science data calibration scan will be an STD scan).
Tipping Mode Scans
Please note that tipping scans are currently prohibited. Until further notice, there is no suggested path in CASA or AIPS to apply tipping scan solutions to the data. This documentation is for those who want to take the tipping data anyway during their observations. If you have questions about setting up TIP-scans please consult the NRAO Science Helpdesk.
Tipping mode scans will need a scan length of at least 1 minute and 50 seconds to perform the tip and to derive a useful measurement. Slew from the previous source to the anticipated azimuth needs to be added to the scan length and is not straightforward to estimate for a dynamic schedule; use the longest slew during any of your LST start times (which may need some experimenting with the assumed LST start of the SB in the Reports tab).
The following table contains the fields expected on a TIP line.
Order | Field | Description |
---|---|---|
1 | scanName |
Optional, single value
|
2 | azimuth |
Mandatory, single value
|
3 | resourceName |
Mandatory, single value
|
4 | timeType |
Optional, single value (defaults to Duration LST), not case-sensitive
|
5 | time |
Mandatory, single value
|
6 | antennaWrap |
Optional, single value (defaults to No Preference), not case-sensitive
|
7 | tippingOrder |
Mandatory, single value, not case-sensitive
|
8 | comments |
Optional, single value
|
Scan Loops
Loops of scans can be defined (with 4 additional fields and 5 semi-colons) and nested without limitation, and every LOOP-START line must have a corresponding LOOP-END (with no other fields and a single semi-colon). The uppermost unpaired LOOP-END is taken to end the lowermost unpaired LOOP-START.
LOOP-START;loopName;iterationCount;bracketed?;comments;
[some STD-scans and/or PTG-scans, TIP-scans, nested loops, etc.]
LOOP-END;
The following table describes fields expected on a LOOP-START line:
Order | Field | Description |
---|---|---|
1 | loopName |
Optional, single value (defaults to [New Loop])
|
2 | iterationCount |
Mandatory, single value
|
3 | bracketed? |
Optional, single value (defaults to N), not case-sensitive
|
4 | comments |
Optional, single value
|
Subarrays
Up to three subarrays can be generated using the syntax below; it is a kludge from the normal loop and thus a bit more clumsy (with 5 additional fields and 6 semi-colons). Subarrays cannot be nested, but loops in subarrays can. Every SUBARRAY-LOOP-START line must have a corresponding SUBARRAY-LOOP-END (with no other fields and a single semi-colon). The uppermost unpaired SUBARRAY-LOOP-END is taken to end the lowermost unpaired SUBARRAY-LOOP-START. Note that the number of pads in a 3-subarray observation cannot be 9+9+9; the closest possible subarray distribution is 8+9+10 antennas.
SUBARRAY-LOOP-START;subarrayName;1;N;;ListOfPads;
[some STD-scans and/or PTG-scans, TIP-scans, nested loops, etc.]
SUBARRAY-LOOP-END;
The following table describes fields expected on a SUBARRAY-LOOP-START line:
Order | Field | Description |
---|---|---|
1 | subarrayName |
Optional, single value (defaults to [New Subarray])
|
2 | [unused] |
Mandatory, 1
|
3 | [unused] |
Optional, single value (defaults to N), not case-sensitive
|
4 | [unused] |
Optional, single value
|
5 | listOfPads |
Mandatory, comma-separated list of pads
|
Holography
For completeness the following defines the holograpy line. This mode should not be used in general but is listed here as documentation for operations. Note that in the OPT there is a way to define the antenna wrap which is missing in the definition here, and that there is no implementation of rotating the grid yet (in this text line, nor in the OPT itself, only in the observing script). The UT scan duration and scan intent are automatically generated in the interface from this text line input.
HOLO;scanName;sourceName;resourceName;maxTime(h);refAnts;dwellTime(s);initDir(AZ/EL);. . .
. . .numbPtsAz;numbPtsEl;offsAz;offsEl;oversampAz;oversampEl;initDirAz;initDirEl;. . .
. . .calIntRow;calDur(s);ptgResource;ptgIntRow;ptgDur(s);comments;
Importing a Scan List
To ingest a text file with a scan list, navigate to the OPT and activate (click) the scheduling block or a scan in the scheduling block in/after which the new scans should be placed. Any lines relating to the scheduling block preamble will be ignored at this stage. Select from the menu FILE - IMPORT SCANS. After providing a file name to import, scans will be appended directly after the activated field, i.e., at the beginning of a scheduling block if the scheduling block is active, or after the activated scan. The imported scans can be moved around with the the general copy/paste method of the OPT web application.
Examples
Following are some very simple (version 4) examples for 8-bit correlator modes; for 3-bit modes additional setup scans are needed and may be recommended for 8-bit as well. An example of an OTFM scheduling block is given in the OPT manual, OTFM section.
Example of a scan list with two (8-bit) low-frequency science resources (thus no pointing) starting with target observing and ending with flux calibration scans at the end of the observation:
# Start with defining which pre-defined source and resource catalogs to use
SRC-CAT; My Sources, VLA;
HDWR-CAT; My Resources, NRAO Defaults;
#
# Two one-minute 8-bit frequency setup scans, CW wrap, no cal.intents
STD; setupDummy1; J1404+6551; L full width; dur; 0:01:0.0; CW;n; ; ; ; ; SetAtnGain,;dummyL ;
STD; setupDummy2; J1404+6551; my S band; DUR; 0:01:0.0; CW;N; ; ; ; ; SetAtnGain;dummyS;
#
# Account for slew and wrap, may take ten mins minus above, alternate flux calibrator
LOOP-START; finish 10min startup loop; 2; N; ;
STD; ; J1404+6551; my S band; ; 0:2:0; CW; N;;; ; ; CalGain;;
STD; ; J1404+6551; L full width; ; 0:2:0; CW; N;;; ; ; CalGain;;
LOOP-END;
#
# Target observing loop; save on some slewing time
LOOP-START; target+cal both freqs; 15; N; ;
LOOP-START;19min scan; 2; ;keep scans under 10min by repeating it;
STD; ; source1atL; L full width; ; 0:09:30.0;; N;;;; ; ObsTgt,,; ;
LOOP-END;
STD;; source2atS; my S band; ; 0:07:30.0;; n;;;; ; ObsTgt,,; ;
STD; calS; J1404+6551; my S band ; ; 0:2:0; ; n; ;;; ; CalGain; ;
STD; calL; J1404+6551; L full width; ; 0:2:0; ; N; ;;; ; CalGain,;;
LOOP-END;
#
<etc>
#
# Slew to the flux calibrator, needs some extra time on first scan, deal with wrap issues
STD ; L FXBP ; J1331+3030 ; L full width; ; 0:07:20 ; CW; N; ; ; ; ; CalBP, CalFlux ; ;
STD ; S FXBP ; J1331+3030 ; my S band ; ; 0:2:0 ; CW; N; ; ; ; ; CalBP, CalFlux ; ;
Example of the start of a scan list with two (8-bit) high-frequency science resources, pointing and flux calibration at the start of the observation:
# Start with defining which pre-defined source and resource catalogs to use
SRC-CAT; My project sources, VLA;
HDWR-CAT; HIGHFreqCat, NRAO Defaults;
#
# Two one-minute 8-bit frequency setup scans, CCW wrap, no cal.intents
STD; setup–Q; J0137+3309; Q wide band; dur; 0:01:0.0; CCW;n;; ; ;;SetAtnGain,;dum setup;
STD; setup–A; J0137+3309; special ka band; dur; 0:01:0.0; CCW;N;;; ;; SetAtnGain;dum;
#
# Account for slew, add time for pointing, may take twelve mins minus above
PTG; pointing ; J0137+3309 ; Primary X band pointing; ; 0:10:0 ; CCW; N; ; ; ;; ;
#
# Standard calibration, note the “Y” to apply pointing solutions
STD ; Q FXBP ; J0137+3309 ; Q wide band; ; 0:1:30 ; ; y; ; ;; ; CalBP, CalFlux ; ;
STD ; A FXBP ; J0137+3309 ; special ka band; ; 0:1:30 ; ; Y; ; ; ;; CalBP, CalFlux ; ;
#
# Slew to calibrator, need to do a new pointing scan (should have >2:30 on source for all start LST)
PTG; pointing ; TargPTG ; Primary X band pointing; ; 0:6:20 ; ; N; ; ;; ; ;
#
# Bracketed loop in first frequency, switch on reference pointing
LOOP-START; qloop; 17; y; ;
STD; ; TargCAL ; Q wide band; ; 0:1:0; ; Y;;; ; ;calgain; ;
STD; ; myTarget; Q wide band; ; 0:2:30; ; y;;; ;; obstgt;;
LOOP-END;
#
# New pointing scan (should have >2:30 on source for all start LST)
PTG; pointing ; TargPTG ; Primary X band pointing; ; 0:2:50 ; ; N; ;; ; ; ;
#
# Non-bracketed loop to account for extra time to slew from pointing
STD; ; TargCAL ;special ka band;;0:1:20;;y;;;;;calgain;;
LOOP-START; Ka-loop; 13; n; ;
STD;;myTarget;special ka band;;0:2:30;;Y;;;;;obstgt;;
STD;;TargCAL ;special ka band;;0:1:00;;y;;;;;calgain;;
LOOP-END;
#
<etc>
Connect with NRAO