Open keflavich opened 8 months ago
I see the rendered ra and dec axes are swapped. Is that supposed to be?
Yes, but with a gigantic "?" next to that yes. JWST observes on its side, so the CD1_1/CD2_2 matrices are always rotated 90 deg. The most natural way to display the pixel coordinates is therefore with RA vertical, dec horizontal. It is confusing as heck working with 90-deg rotates WCSes, but that's what blocking out the sun does for you.
@keflavich would it be possible to have a test FITS image for diagnostics, please? @acdo2002 are you able to obtain a test image with SIP projection?
@kswang1029 Ok, I am going to look at whether I can obtain JWST NIRCam L2 product with Projection = TAN-SIP
Anything from the JWST archives on MAST should work; if you need me to, I can dig up a file
Anything from the JWST archives on MAST should work; if you need me to, I can dig up a file
Many thanks for your report!
We have obtained the JWST NIRCam level 2 products and I have confirmed the Spatial Matching does not work (with our current dev branch) for the CTYPE1 = "RA---TAN-SIP"
and CTYPE2 = "DEC---TAIN-SIP"
(file information of Projection = TAN-SIP
for level 2c .crf.fits). and does not work correctly if the file information has Projection = TAN
(resample image i2d.fits)
Please don't use level 2 JWST product with current released. CARTA but level 3 JWST product looks Ok, at least it can spatially matched well (quick check by my eyes) with MIRI-IFU and ALMA. And please let us know if you have any other problem with using CARTA on JWST or other IFU format data!
Is there any chance you'll add support for SIP in a future release, and any idea on the timeline for that? I'm working with JWST archive produces that have (very) bad WCS solutions, and I need to be able to access and work with the SIP versions in order to derive appropriate corrections. My workflow without CARTA is clunky: either I have to use in-notebook visualizations or ds9.
Files with FITS SIP headers won't spatially match. I'm not certain it's the SIP's fault, but maybe.
This is a JWST
_cal.fits
file - you can get these from MAST in the L2 (level 2) pipeline products for any NIRCam observations.Header:
The coordinates are displayed, though: