Lstrange: Difference between revisions

From CASA Guides
Jump to navigationJump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
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 time range on source is typically larger than the total integration time on source.  Use the [[TimeOnSource]] function to compute the latter.


==Example==
==Example==
Line 13: Line 13:
Found observatory = ALMA  
Found observatory = ALMA  
Running ValueMapping... (this may take a minute)  
Running ValueMapping... (this may take a minute)  
Ignoring spectral window [0, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37] because it is WVR related
Ignoring spectral window [0, 25, 26, 27, 28, 29, 30, 31, 32, 33] because it is WVR related
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]
Running getScansForIntent... (this may take a few minutes)
On source scans =  [15 18 22 25]
Done
LST range of whole SB = 19.56 to 20.75 = 19:33 to 20:45 (71.4 minutes)
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]
MJD range of whole SB = 55854.9226 to 55854.9721
OBSERVE_TARGET scans =  [ 9 13 18 22 27 31 36]
  UT range of whole SB = 2011-10-20 22:08:36 UT to 2011-10-20 23:19:49 UT
LST range of whole SB = 9.50 to 11.20 = 09:29 to 11:11 (102.1 minutes)
LST range on source = 20.20 to 20.71 = 20:12 to 20:42 (30.4 minutes)
MJD range of whole SB = 55673.0013 to 55673.0720
MJD range on source = 55854.9493 to 55854.9704
  UT range of whole SB = 2011-04-22 00:01:54 UT to 2011-04-22 01:43:42 UT
  UT range on source = 2011-10-20 22:47:02 UT to 2011-10-20 23:17:24 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 |
</pre></code>
</pre></code>

Latest revision as of 11:50, 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 time 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]
OBSERVE_TARGET 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 |