multicolorfits.pixel_to_sky#
- multicolorfits.pixel_to_sky(headerin, xin, yin, outcoordsys='same', outcoordequinox='J2000.0', forceimagesys=None, originindex=0)[source]#
Helper function to convert pixel coordinates to sky coordinates. Now uses SkyCoord.
Allowed SkyCoord frame systems: [‘altaz’, ‘barycentrictrueecliptic’, ‘cirs’, ‘fk4’, ‘fk4noeterms’, ‘fk5’, ‘galactic’, ‘galactocentric’, ‘gcrs’, ‘geocentrictrueecliptic’, ‘hcrs’, ‘heliocentrictrueecliptic’, ‘icrs’, ‘itrs’, ‘precessedgeocentric’, ‘supergalactic’]
- Parameters:
headerin (astropy.io.fits.header) – Header object
xin (float) – Input x-axis pixel position
yin (float) – Input y-axis pixel position
outcoordsys (str) – ‘same’ for frame in the header, or can alternatively specify a SkyCoord frame system.
outcoordequinox (str) – equinox, default = ‘J2000.0’
forceimagesys (str) – SkyCoord frame system. User can specify a frame forceimagesys to use (in case no RADESYS in the header, or if it’s known to be wrong…)
originindex (int) – Default = 0. Pixel origin to use for calculations (0 or 1)
- Returns:
list – [RA_decimal, DEC_decimal]