computeITRFCorrection

Return to directory of Todd's CASA extensions

Computes the corrections to make to absolute geocentric coordinates XYZ (e.g. pad position in ASDM_STATION) from a specified offset in local coordinates (e.g. antenna position in ASDM_ANTENNA). Called by compareTMCDB.

Usage:

au.computeITRFCorrection(padPosition, position)
Inputs:
  • padPosition: vector [X,Y,Z] geocentric coords
  • position: antenna position in local coords (e.g. from ASDM_ANTENNA table)
Returns:
  • the corrections to apply as dX, dY, dZ

Example:

CASA <16>: pad = au.padPositionASDM('uid___A002_Xa56b1d_X174.ms',ant='DV22')['DV22']
CASA <17>: padVector = [pad['X'], pad['Y'], pad['Z']]
CASA <18>: padVector
  Out[18]: [2225145.331675, -5439668.6360200001, -2482442.560569]
CASA <19>: antennaVector = au.antennaPositionASDM('uid___A002_Xa56b1d_X174.ms')['DV22']
CASA <20>: antennaVector
  Out[20]: [-0.001897, 0.00093999999999999997, 7.0036940000000003]
CASA <21>: au.computeITRFCorrection(padVector, antennaVector)
  Out[21]: array([ 2.43857726, -5.96644231, -2.73982504])
CASA <22>: au.antennaPositionASDM('uid___A002_Xa56b1d_X174.ms',itrf=True)['DV22']
  Out[22]: [2225147.7705022683, -5439674.603073488, -2482445.298840052]
CASA <23>: 2225145.33167+ 2.43857726
  Out[23]: 2225147.77024726

-- ToddHunter - 2014-10-31
Topic revision: r2 - 2015-08-03, 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