Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWST id2 FITS files #70

Open
geckzilla opened this issue Nov 26, 2023 · 1 comment
Open

JWST id2 FITS files #70

geckzilla opened this issue Nov 26, 2023 · 1 comment

Comments

@geckzilla
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant