Caltech-IPAC / Montage

Image Mosaics for Astronomers
Other
109 stars 47 forks source link

JWST id2 FITS files #70

Open geckzilla opened 9 months ago

geckzilla commented 9 months ago

Example FITS file: https://drive.google.com/file/d/1k4zLYLWxZHGCpxdLvCt4pDc-WiA7hAyE/view?usp=sharing Trying to do: mFixNaN jw01714006001_02101_00001_nrcalong_i2d.fits NaN.fits 0 2.78e-17 get output: [struct stat="ERROR", msg="No NAXIS1 keyword in FITS header"]

Problem seems to be that there are multiple images within the single FITS file.

If I open the file in DS9 and save as a slice, I can fix NaNs no problem because that removes all the other images from the file.

Anyway, what I'd really love is to be able to specify a range to count as NaN during mosaic creation, because that's where the small numbers are a problem. They're creating dark slivers/edge outlines in the mosaic (see attached image). The mosaic creation for some reason also has no issue with the multiple FITS file images and headers.

There are pipeline mosaics available for JWST data, but I hate them. I like what Montage outputs a lot better, even with the "blank" pixels not being proper NaNs. Montage is leaving some of the artifacts that their pipeline removes, but their pipeline completely botches the background matching somehow. So, thanks for creating Montage!

crab_uncorrected

geckzilla commented 9 months ago

Looks like there are also places where there is ~5px worth of misalignment is happening. I'm guessing there's no way to address this. Maybe I need to try something else. :(

montage_misalign