getLoadTemperatures
Gets the calibration device load temperatures (in Kelvin) from the ASDM_CALDEVICE table (if present).
Returns a dictionary keyed by antenna, then scan number. Keys are provide for both the antenna name and ID.
If the table is not present, it returns a dictionary with the default temperatures for these loads.
Return to directory of Todd's CASA extensions
Usage:
au.getLoadTemperatures(vis, antenna=None, doplot=False, warnIfNoLoadTemperatures=True)
- if doplot=True, plots the temperature timestamps compared to the scan timestamps
- antenna: only used if doplot==True
Examples:
A 2-antenna dataset, with the table present:
CASA <31>: au.getLoadTemperatures('uid___A002_X6b15c4_X21.ms')
Out[31]:
{0: {1: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
2: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
3: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
4: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
5: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
6: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
7: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
8: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
9: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
10: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
11: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
12: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
13: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
14: {'amb': 288.85000610351562, 'hot': 357.35000610351562}},
1: {1: {'amb': 288.95001220703125, 'hot': 358.25},
2: {'amb': 288.95001220703125, 'hot': 358.25},
3: {'amb': 288.95001220703125, 'hot': 358.25},
4: {'amb': 288.95001220703125, 'hot': 358.25},
5: {'amb': 288.95001220703125, 'hot': 358.25},
6: {'amb': 288.95001220703125, 'hot': 358.25},
7: {'amb': 288.95001220703125, 'hot': 358.25},
8: {'amb': 288.95001220703125, 'hot': 358.25},
9: {'amb': 288.95001220703125, 'hot': 358.25},
10: {'amb': 288.95001220703125, 'hot': 358.25},
11: {'amb': 288.95001220703125, 'hot': 358.25},
12: {'amb': 288.95001220703125, 'hot': 358.25},
13: {'amb': 288.95001220703125, 'hot': 358.25},
14: {'amb': 288.95001220703125, 'hot': 358.25}},
'DA62': {1: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
2: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
3: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
4: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
5: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
6: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
7: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
8: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
9: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
10: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
11: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
12: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
13: {'amb': 288.85000610351562, 'hot': 357.35000610351562},
14: {'amb': 288.85000610351562, 'hot': 357.35000610351562}},
'DA63': {1: {'amb': 288.95001220703125, 'hot': 358.25},
2: {'amb': 288.95001220703125, 'hot': 358.25},
3: {'amb': 288.95001220703125, 'hot': 358.25},
4: {'amb': 288.95001220703125, 'hot': 358.25},
5: {'amb': 288.95001220703125, 'hot': 358.25},
6: {'amb': 288.95001220703125, 'hot': 358.25},
7: {'amb': 288.95001220703125, 'hot': 358.25},
8: {'amb': 288.95001220703125, 'hot': 358.25},
9: {'amb': 288.95001220703125, 'hot': 358.25},
10: {'amb': 288.95001220703125, 'hot': 358.25},
11: {'amb': 288.95001220703125, 'hot': 358.25},
12: {'amb': 288.95001220703125, 'hot': 358.25},
13: {'amb': 288.95001220703125, 'hot': 358.25},
14: {'amb': 288.95001220703125, 'hot': 358.25}}}
--
ToddHunter - 2013-09-15