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

Add an option to process a list of slits for NIRSpec MOS in spec2 #9005

Open
stscijgbot-jp opened this issue Dec 12, 2024 · 1 comment
Open

Comments

@stscijgbot-jp
Copy link
Collaborator

Issue JP-3815 was created on JIRA by Christian Hayes:

Currently in extract_2d users can supply a slit name for the pipeline to process.  The spec2 pipeline will ignore the remaining slits that have been identified in assign_wcs, and only process the requested slit.  We would like to update this optional parameter to be able to receive a list of slits to process.  In addition if it is possible it would be useful to be able to supply a list of source ids to process (since users will often know the sources they want to process, so it would be easier to supply source IDs rather than slit IDs).

 

@stscijgbot-jp
Copy link
Collaborator Author

Comment by Christian Hayes on JIRA:

I had started looking into this (on an old branch at this point) here:  main...hayescr:jwst:mos_list

I think that we could pass extract_2d a list of slits to process by updating "spec" to use something like:

"slit_names = force_list(default=None)"

This seemed to work well at accepting lists or an individual slit, though I have not had a chance yet to see if it would be possible to check for a set of source IDs in the open slits that extract_2d loops through.

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

1 participant