Usage of xyz2long

Return to directory of Todd's CASA extensions

A convenient wrapper function to call simutil.xyz2long to convert an ITRF location to degrees of latitude/longitude (and height in meters in CASA >= 4.3). See also computeITRFCorrection and long2xyz.

Usage:

au.xyz2long(x, y, z, datum='WGS84')

Examples:

CASA 4.2.2

In versions of CASA prior to 4.3, the simutil function simutil.xyz2long did not return the height.
CASA <6>: au.xyz2long(2225077.264 ,  -5440034.982 ,  -2481721.681 )
latitude = -23.029607, longitude = -67.754509 degrees
  Out[6]: (-23.029607264696395, -67.754509499673574)

CASA 4.3

CASA <3>: au.xyz2long(2225077.264 ,  -5440034.982 ,  -2481721.681 )
latitude = -23.029607, longitude = -67.754509 degrees, height = 5072.765523m
  Out[3]: [-23.029607264696402, -67.75450949967356, 5072.7655225255512]

-- ToddHunter - 2013-09-08
Topic revision: r3 - 2015-11-08, 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