fix_hmi_meta#

sunkit_magex.pfss.utils.fix_hmi_meta(hmi_map)[source]#

Deprecated since version 1.0: This is now fixed within sunpy when you load a HMI file.

Fix non-compliant FITS metadata in HMI maps.

This function:
  • Corrects CUNIT2 from ‘Sine Latitude’ to ‘deg’

  • Corrects CDELT1 and CDELT2 for a CEA projection

  • Populates the DATE-OBS keyword from the T_OBS keyword

  • Sets the observer coordinate to the Earth

Notes

If you have sunpy > 2.1 installed, this function is not needed as sunpy will automatically make these fixes.