This issue is happenning in both Sunpy 5.0.1 and 5.1 RC:
I’m following the guide for Reprojecting to a Map Projection with a Custom Origin
When plotting the reprojected Postel map with Sunpy AIA sample
AIA_171_IMAGE, I get
WARNING: SunpyMetadataWarning: Missing metadata for observer: assuming Earth-based observer.
For frame ‘heliographic_stonyhurst’ the following metadata is missing: hgln_obs,dsun_obs,hglt_obs
For frame ‘heliographic_carrington’ the following metadata is missing: dsun_obs,crln_obs,crlt_obs
Yet these keywords exist in the sample’s FITS headers:
from astropy.io import fits hdul = fits.open(AIA_171_IMAGE) kv = [hdul.header[key] for key in ['hgln_obs', 'dsun_obs', 'hglt_obs', 'crln_obs' , 'crlt_obs']] kv
[0.0, 151846026489.0, 0.048591, 340.698273, 0.048591]
It looks like the same issue that used to be reported (and solved) for XRT: SunpyMetadataWarnings when using Hinode XRT data
Is this a known issue or should I raise it in Github?