readTcal

Return to directory of Todd's CASA extensions

Read the Tcal, Trx, Tsky, or Tsys spectrum for a specific antenna, spw and time. If the time is not specified, it will return a dictionary of spectra keyed by the time (in MJD seconds). The spw should be an spw number in the measurement set that is associated with a CALIBRATE_ATMOSPHERE scan. A conversion will be made to the spw number in the ASDM using asdmspwmap. If the spw is FDM, it is up to the user to find the associated TDM spw (e.g. using tsysspwmap) and pass it in.

Usage:

au.readTcal(asdm, antenna, spw, meantime=None, spectrum='tcal', verbose=False)
  • antenna: the antenna ID (string or integer, not the name)
  • spw: the spw ID (string or integer)
  • spectrum: 'tsys', 'trx', 'tsky', or 'tcal'
Returns:
A dictionary keyed by the MJD in seconds, with values equal to a list of arrays (one per polarization) each with N channels.

Example:

CASA <6>: au.readTcal('uid___A002_X723a9d_X20e',0,19)
No transformation will be applied on this dataset.
No transformation will be applied on this dataset.
  Out[6]:
{4890786257.552: [array([ 257.03199886,  257.05722156,  257.06424587,  257.05477554,
        257.03014428,  256.99139959,  256.9393634 ,  256.87467715,
        256.7978359 ,  256.70921481,  256.60909006,  256.49765543,
        256.37503566,  256.24129687,  256.09645418,  255.94047632,
        255.77328658,  255.59475981,  255.40471627,  255.20291946,
        254.98913332,  254.76316845,  254.5251521 ,  254.27717091,
        254.03028787,  253.82137738,  253.64944327,  253.47127218,
        253.27160375,  253.04536736,  252.78939467,  252.50116856,
        252.18188643,  251.82679391,  251.43128075,  250.99296995,
        250.50981756,  249.9803628 ,  249.40424016,  248.78297795,
        248.12131242,  247.42945519,  246.72715801,  246.0509731 ,
        245.46867877,  245.10901706,  245.23537336,  246.40397361,
        249.20165146,  247.66005731,  245.67066258,  245.16257446,
        245.37250009,  245.92026468,  246.62312399,  247.38756872,
        248.16358882,  248.92395915,  249.65399665,  250.34616759,
        250.99712062,  252.59950316,  253.13918838,  253.63946676,
        254.10244799,  254.51548185,  254.9106427 ,  255.27543927,
        255.61210264,  255.92275096,  256.20937179,  256.47381406,
        256.71778639,  256.94285968,  257.15047237,  257.34193724,
        257.51844906,  257.68109256,  257.83085037,  257.96861069,
        258.09517456,  258.21126269,  258.31752163,  258.41452953,
        258.50280121,  258.58279277,  258.65490557,  258.71948976,
        258.77684723,  258.82723407,  258.87086243,  258.90790189,
        258.93848   ,  258.96268186,  258.98054825,  258.99207113,
        258.99718883,  258.99584749,  258.98868794,  258.97525832,
        258.95490495,  258.9274214 ,  258.89255337,  258.84997682,
        258.7992985 ,  258.74005379,  258.67170166,  258.59361761,
        258.50508455,  258.40528173,  258.29327132,  258.16798187,
        258.02818769,  257.87248793,  257.69940549,  257.50733182,
        257.29387805,  257.05691151,  256.79542727,  256.50512436,
        256.18212231,  255.82257837,  255.42214207,  254.97650513,
        254.48068345,  253.92627854,  253.30596077,  252.61365344]),
                  array([ 249.32231996,  249.30151799,  249.26721221,  249.22029264,
        249.16143989,  249.09116876,  249.00986034,  248.91778613,
        248.81512676,  248.70198669,  248.57840589,  248.44436925,
        248.29981389,  248.14463448,  247.97868631,  247.80178547,
        247.61370518,  247.41416738,  247.20282992,  246.97927463,
        246.74302983,  246.49361829,  246.23084562,  245.95639813,
        245.68164761,  245.45133117,  245.26560339,  245.07193947,
        244.85407476,  244.6068869 ,  244.32711519,  244.01182651,
        243.65967949,  243.2663336 ,  242.82732544,  242.339067  ,
        241.79797149,  241.20060809,  240.54400784,  239.82615655,
        239.04682909,  238.20906459,  237.3218706 ,  236.4050853 ,
        235.4988435 ,  234.68269777,  234.12377459,  234.18797179,
        235.38188628,  234.66726581,  234.08478573,  234.4378801 ,
        235.20184563,  236.13157958,  237.11220475,  238.08684613,
        239.02685466,  239.9182801 ,  240.75511094,  241.5357075 ,
        242.26085883,  244.06454113,  244.64427658,  245.17970935,
        245.67366474,  246.12198011,  246.54151396,  246.92801153,
        247.28405205,  247.61204756,  247.91423477,  248.19267466,
        248.44925713,  248.68570859,  248.90360136,  249.10436385,
        249.28929104,  249.45955469,  249.61621323,  249.76022101,
        249.89243692,  250.01363226,  250.124498  ,  250.22565117,
        250.31764073,  250.4009527 ,  250.47601466,  250.5431997 ,
        250.6028298 ,  250.65517861,  250.70047371,  250.73889839,
        250.7705927 ,  250.79565389,  250.8141358 ,  250.82604691,
        250.83134782,  250.82997987,  250.82218831,  250.80767843,
        250.78603437,  250.75702358,  250.72036132,  250.67569791,
        250.62261606,  250.56062648,  250.48916144,  250.40756673,
        250.31509187,  250.21087849,  250.09394647,  249.96317746,
        249.81729493,  249.65484244,  249.47421625,  249.27362293,
        249.05075391,  248.80325137,  248.52909176,  248.22446653,
        247.88549525,  247.50800214,  247.08725632,  246.61867005,
        246.0972103 ,  245.51359177,  244.86023332,  244.13314744])],
 4890786626.731999: [array([ 268.7902219 ,  268.88057412,  268.94599318,  268.98933036,
        269.01284148,  269.01832679,  269.00723163,  268.98072059,
        268.93973333,  268.88502762,  268.817213  ,  268.73677775,
        268.64411054,  268.53951808,  268.42323917,  268.29545539,
        268.15629862,  268.00585528,  267.84416942,  267.67125389,
        267.4871959 ,  267.29220016,  267.08683379,  266.87374307,
        266.66363908,  266.48290481,  266.32897159,  266.17105763,
        265.99517458,  265.79628725,  265.57132889,  265.31833702,
        265.04202366,  264.73700538,  264.39840063,  264.02545109,
        263.61818064,  263.17777041,  262.7073484 ,  262.21319827,
        261.70671559,  261.20773233,  260.75039155,  260.39357997,
        260.2418989 ,  260.48930927,  261.52603911,  264.15655144,
        269.06405624,  266.43660422,  262.59060801,  260.94039732,
        260.41409761,  260.45435783,  260.78870014,  261.27491245,
        261.83447765,  262.4224072 ,  263.01239368,  263.58899384,
        264.14329788,  265.48081129,  265.96936135,  266.4248914 ,
        266.84855959,  267.21560684,  267.57998396,  267.91743797,
        268.22974265,  268.51863133,  268.78576634,  269.03272056,
        269.26096733,  269.47187628,  269.66671298,  269.84664128,
        270.01272721,  270.1659439 ,  270.30717698,  270.43723017,
        270.55683077,  270.666635  ,  270.767233  ,  270.85915345,
        270.94286784,  271.01879428,  271.08730083,  271.14870847,
        271.2032935 ,  271.25128955,  271.29288894,  271.32824344,
        271.3574641 ,  271.3806198 ,  271.39773329,  271.40877349,
        271.41364735,  271.41230826,  271.40595329,  271.39390828,
        271.37518218,  271.34960256,  271.31695532,  271.27694949,
        271.22922204,  271.17333886,  271.10879163,  271.03499192,
        270.951263  ,  270.8568295 ,  270.75080427,  270.6321717 ,
        270.49976597,  270.35225113,  270.1883132 ,  270.0065859 ,
        269.8045465 ,  269.58035642,  269.33441332,  269.06168995,
        268.7582625 ,  268.42070615,  268.04514551,  267.62760364,
        267.16309849,  266.64433802,  266.06421642,  265.41366559]),
                     array([ 297.22076899,  297.47677056,  297.69093434,  297.86902911,
        298.01565365,  298.13452016,  298.22865716,  298.30055796,
        298.35229192,  298.38558951,  298.40190879,  298.40248837,
        298.38839055,  298.36053705,  298.31973954,  298.26672606,
        298.20216497,  298.12668834,  298.04091874,  297.94551503,
        297.84140161,  297.72980405,  297.61242688,  297.49333354,
        297.38214528,  297.27743733,  297.17257743,  297.06971789,
        296.95841636,  296.83381607,  296.69317189,  296.53599812,
        296.37606041,  296.20646183,  296.02174442,  295.82541586,
        295.62293397,  295.42241221,  295.23613203,  295.08282208,
        294.99129209,  295.00652393,  295.20029043,  295.68992989,
        296.67655113,  298.52546294,  301.96124469,  308.446284  ,
        318.92869389,  313.42979171,  304.68330776,  300.02256594,
        297.5545795 ,  296.25381192,  295.61168939,  295.35823285,
        295.34028077,  295.4663844 ,  295.67984898,  295.94455538,
        296.23705681,  296.86428914,  297.21131786,  297.5426113 ,
        297.85680458,  298.09852761,  298.37673816,  298.63746644,
        298.88125712,  299.10880587,  299.32089517,  299.51834874,
        299.70199955,  299.87266772,  300.0311457 ,  300.17818858,
        300.31450821,  300.44076999,  300.55759156,  300.66554269,
        300.76514616,  300.85687909,  300.94117463,  301.01842379,
        301.08897729,  301.15314729,  301.21120904,  301.2634022 ,
        301.30993193,  301.35096954,  301.38665256,  301.41708402,
        301.44233038,  301.46241719,  301.47732029,  301.48694942,
        301.49113174,  301.48983863,  301.48568468,  301.47743223,
        301.4632362 ,  301.44301621,  301.41666607,  301.38398554,
        301.34469626,  301.29845086,  301.24483477,  301.18336361,
        301.11347758,  301.03453298,  300.94579036,  300.84639772,
        300.7353662 ,  300.61155309,  300.47409141,  300.32226888,
        300.15326473,  299.96603648,  299.76461413,  299.54218782,
        299.29480688,  299.02020766,  298.71583737,  298.37867471,
        298.00386275,  297.58717935,  297.12230766,  296.59264601])]}
-- ToddHunter - 2013-11-21
Topic revision: r1 - 2013-11-21, ToddHunter
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NRAO Public Wiki? Send feedback