Lstrange: Difference between revisions

From CASA Guides
Jump to navigationJump to search
No edit summary
Line 3: Line 3:
This page documents the lstrange function of Python module [[Analysis Utilities|analysisUtils]].
This page documents the lstrange function of Python module [[Analysis Utilities|analysisUtils]].


Sometimes it is useful to know the LST range over which your scheduling block (SB) was run. For example, this information is useful to the JAO data reduction scientist who can request a certain LST for the next execution of your SB. This command will do that, along with providing the UT and MJD and duration. The only parameter is the ms name. It will calculate the range for the entire ms, and then calculate the range restricted to the scans with ON_SOURCE intent. It also lists the range of elevations ON_SOURCE, and a one-line summary that can be pasted into a table on the SCOPS wikipages. Note that the range on source is typically larger than the total integration time on source.  Use the [[TimeOnSource]] function to compute the latter.
Sometimes it is useful to know the LST range over which your scheduling block (SB) was run. For example, this information is useful to the JAO data reduction scientist who can request a certain LST for the next execution of your SB. This command will do that, along with providing the UT and MJD and duration. The only parameter is the ms name. It will calculate the range for the entire ms, and then calculate the range restricted to the scans with OBSERVE_TARGET intent. It also lists the range of elevations on the target source, and a one-line summary that can be pasted into a table on the SCOPS wikipages. Note that the range on source is typically larger than the total integration time on source.  Use the [[TimeOnSource]] function to compute the latter.


==Example==
==Example==
Line 24: Line 24:
MJD range on source = 55673.0109 to 55673.0696
MJD range on source = 55673.0109 to 55673.0696
  UT range on source = 2011-04-22 00:15:42 UT to 2011-04-22 01:40:12 UT
  UT range on source = 2011-04-22 00:15:42 UT to 2011-04-22 01:40:12 UT
Elevation range on-source = 69.2-78.2
Elevation range on science source = 69.2-78.2
 
wikiline = 2011-04-22 00:01-01:43 | 09:29-11:11 | 101.8 |09:43-11:08 | 69-78 |
</pre></code>
</pre></code>

Revision as of 11:47, 1 March 2012

Return to Analysis Utilities

This page documents the lstrange function of Python module analysisUtils.

Sometimes it is useful to know the LST range over which your scheduling block (SB) was run. For example, this information is useful to the JAO data reduction scientist who can request a certain LST for the next execution of your SB. This command will do that, along with providing the UT and MJD and duration. The only parameter is the ms name. It will calculate the range for the entire ms, and then calculate the range restricted to the scans with OBSERVE_TARGET intent. It also lists the range of elevations on the target source, and a one-line summary that can be pasted into a table on the SCOPS wikipages. Note that the range on source is typically larger than the total integration time on source. Use the TimeOnSource function to compute the latter.

Example

aU.lstrange('uid___A002_X2eea47_X1e0.ms')
Found observatory = ALMA 
Running ValueMapping... (this may take a minute) 
Ignoring spectral window [0, 25, 26, 27, 28, 29, 30, 31, 32, 33] because it is WVR related
Running getScansForIntent... (this may take a few minutes)
Done
Found scans =  [ 1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38]
On source scans =  [ 9 13 18 22 27 31 36]
LST range of whole SB = 9.50 to 11.20 = 09:29 to 11:11 (102.1 minutes)
MJD range of whole SB = 55673.0013 to 55673.0720
 UT range of whole SB = 2011-04-22 00:01:54 UT to 2011-04-22 01:43:42 UT
LST range on source = 9.73 to 11.14 = 09:43 to 11:08 (84.7 minutes)
MJD range on source = 55673.0109 to 55673.0696
 UT range on source = 2011-04-22 00:15:42 UT to 2011-04-22 01:40:12 UT
Elevation range on science source = 69.2-78.2
wikiline = 2011-04-22 00:01-01:43 | 09:29-11:11 | 101.8 |09:43-11:08 | 69-78 |