Open ddobie opened 11 months ago
Thanks for raising this @ddobie - I will look into it and report back... fwiw, I have cross-checked the KCWI cubes with HST imaging.
@rcooke-ast , @ddobie . Is this issue solved now?
The issue is not yet solved.
The WCS of KCWI does appear to be incorrect, but it's been set correctly according to what is expected from the WCS. I think this needs to be looked at using different PAs (e.g. a standard star taken at different PAs).
Running
pypeit_coadd_datacube
on KCWI data produces a datacube that has an incorrect WCS - what should be the central coordinate ends up in the top left of the image. It's not clear to me whether this problem stems from pypeit or the WCS of the fits files that come off the telescope.As a short-term hacky workaround you can update the CRPIX values to be
CRPIX1=CRPIX1+NAXIS1/2
andCRPIX2=CRPIX2-NAXIS2/2
.The issue is reproducible with the
keck_kcwi_medium_bl
example from the pypeit dev suite. Run the example as-provided and then runpypeit_coadd_datacube
with the following parameter file