multicolorfits.header_frame_name#
- multicolorfits.header_frame_name(hdrin, default='fk5')[source]#
Determine the celestial frame of a FITS header, as an astropy frame name.
Uses CTYPE prefixes (GLON/ELON) first, then RADESYS/RADECSYS for equatorial frames.
- Parameters:
hdrin (astropy.io.fits.header) – Header object
default (str) – Frame to assume for equatorial headers without a RADESYS card.
- Returns:
str – e.g. ‘fk5’, ‘icrs’, ‘galactic’, ‘barycentricmeanecliptic’