radecToEcliptic

Return to directory of Todd's CASA extensions

Uses the CASA measures tool to convert from equatorial to ecliptic coords.

Usage:

au.radecToEcliptic(radec, degrees=False)
Inputs:
  • radec: string of the form "hh:mm:ss.sss -dd:mm:ss.ss", or [ra,dec] in rad
Returns:
  • longitude and latitude in radians, unless degrees=True

Example:

CASA <3>: au.radecToEcliptic('6:0:0 -35:0:0',degrees=True)
  Out[3]: (90.0, -58.439291111111125)

-- ToddHunter - 2016-02-28
Topic revision: r1 - 2016-02-28, 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