We were trying to read in the WCS from a fits file that had been initially written with galsim, and then potentially written over with astropy, so the header had a "LONPOLE" argument.
When trying to write a new GalSim image, we realized that LONPOLE is never actually read by galsim, which can be confusing when you look at a header. It might be a good idea to add the ability to read in LONPOLE?
This was largely in _read_header in the GSFitsWCS class - happy to send more reproducibility details below if needed.
We were trying to read in the WCS from a fits file that had been initially written with galsim, and then potentially written over with astropy, so the header had a "LONPOLE" argument.
When trying to write a new GalSim image, we realized that LONPOLE is never actually read by galsim, which can be confusing when you look at a header. It might be a good idea to add the ability to read in LONPOLE?
This was largely in
_read_headerin theGSFitsWCSclass - happy to send more reproducibility details below if needed.