-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Mosviz: nirspec level 2 loader #2144
Comments
I think you were accidentally passing in 2D spec into positional argument expecting 1D spec. Safer to invoke the keywords explicitly. Still, with the latest stable specutils v1.10.0, I get the following error when calling this with your data. It looks like specutils is intentionally saying that this unrectified data is not supported. How do you expect it to be visualized without calibration? mosviz.load_data(spectra_1d="single/jw02136001001_03137_00001_nrs1_x1d.fits",
spectra_2d="single/jw02136001001_03137_00001_nrs1_cal.fits",
instrument="nirspec")
|
I was passing the directory with both files as instructed in the docs I confirm I get the same error as you (the rectified error) if I pass the files separately with their keyword. It loads if I pass it the rectified level 2 s2d file, although it gives me a bunch of warnings about redshift values in disagreement between the 1D and 2D and the Identifier shows negative numbers (no clue if this is a data problem). I added the s2d file to the "single" folder: https://stsci.box.com/s/903uu5lgafp3hg3ayac9efyhu1lrs57n |
If you want to pass in directory, you have to explicitly use the |
Tried passing in a single image as well, and I get:
|
Ah, you are right about the |
Reporter: Camilla Pacifici
According to the docs, nirspec level 2 should be recognized by mosviz:
https://jdaviz.readthedocs.io/en/latest/mosviz/import_data.html#automatic-directory-loading
But I get this traceback
A single pair cal/x1d can be found here: https://stsci.box.com/s/903uu5lgafp3hg3ayac9efyhu1lrs57n
(Data are publicly available)
🐱
DISCLAIMER: This issue was autocreated by the Jdaviz Issue Creation Bot on behalf of the reporter. If any information is incorrect, please contact Duy Nguyen
The text was updated successfully, but these errors were encountered: