topoToLSRK
Return to directory of Todd's CASA extensions
Uses the CASA measures tool to convert a topocentric frequency and observing date/direction
to the corresponding frequency in the LSRK frame. See also
restToLSRK,
restToTopo, and
topoToRest.
Usage:
au.topoToLSRK(topoFrequency, datestring, ra, dec, equinox='J2000', observatory='ALMA', prec=4, verbose=False)
Inputs:
- topoFrequency: floating point value in Hz or GHz, or a string with units
- datestring: "YYYY/MM/DD/HH:MM:SS"
- ra: string "HH:MM:SS.SSSS"
- dec: string "DD.MM.SS.SSSS" or "DD:MM:SS.SSSS" (colons will be replaced with .)
- prec: only used to display the value when verbose=True
Returns: the LSRK frequency in Hz
Examples:
CASA <7>: au.topoToLSRK(230.543382943, -7, '2015-10-10-10:12:00','05:35:20','-05:00:20')
Warning: replacing colons with decimals in the dec field.
Warning: replacing colons with decimals in the dec field.
Out[7]: 230538939248.20093
--
ToddHunter - 2016-05-11