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

Remove ASDF extension requirement for JWST x1d loader #1062

Open
rosteen opened this issue May 30, 2023 · 1 comment
Open

Remove ASDF extension requirement for JWST x1d loader #1062

rosteen opened this issue May 30, 2023 · 1 comment

Comments

@rosteen
Copy link
Contributor

rosteen commented May 30, 2023

I recently encountered a use case where a science team was creating their own data products and attempting to match the JWST file format, so that the files could automatically be identified and read in by the specutils IO machinery. The last sticking point was that the _identify_jwst_fits function requires that there be an ASDF extension in the file as well as having TELESCOP=="JWST" in the header. As far as I can tell, only 2D and 3D files actually use the ASDF extension, so I'm thinking that removing that requirement for identifying x1d files might be useful to make it easier for users to create JWST-style files and have them identified. I'm opening this issue in case there are any objections (I'm not convinced yet that this is a good idea myself) - to me, a potential downside is the case where a user creates a file with TELESCOPE=JWST in the header but in a different format that otherwise could be read by one of the generic readers.

@aragilar
Copy link
Contributor

It's unclear to me what the suggestion is. Is it that non-JWST files get loaded with the (1d) JWST loader if they have TELESCOP=="JWST" (which seems fine to me, though your description seems to be of an XY problem), or something more general?

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

No branches or pull requests

2 participants