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

Stage 4cal (Calibrated Stellar Spectra) #728

Merged
merged 26 commits into from
Feb 12, 2025
Merged

Stage 4cal (Calibrated Stellar Spectra) #728

merged 26 commits into from
Feb 12, 2025

Conversation

kevin218
Copy link
Owner

@kevin218 kevin218 commented Dec 16, 2024

This PR adds a new step to the Eureka! pipeline. Stage 4cal produces calibrated stellar spectra over two regions (typically in and out of transit/eclipse) with uncertainties. In addition, I've added the following:

  1. A new folder to Demos that steps through Stages 2, 3, and 4cal using NIRSpec G395H as an example
  2. A suitable description of the new ECF parameters for the website
  3. New tests that include a NIRSpec file from actual data, thus replacing the simulated FITS file.

Copy link
Collaborator

@taylorbell57 taylorbell57 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't made it through all the files yet (and haven't looked at most of your new code yet), but here are some preliminary comments

@sebastian-zieba
Copy link
Collaborator

Hi, I'm currently testing this PR on some MIRI/LRS data and it works great!
Just wanted to say that I guess the run_eureka.py file should be updated too with something like
meta, spec, ds = s4cal.medianCalSpec(eventlabel, ecf_path=ecf_path)

@kevin218
Copy link
Owner Author

Hi, I'm currently testing this PR on some MIRI/LRS data and it works great! Just wanted to say that I guess the run_eureka.py file should be updated too with something like meta, spec, ds = s4cal.medianCalSpec(eventlabel, ecf_path=ecf_path)

I'm glad it's working out and thanks for the suggestion! I've added a suitable run_eureka.py file to the S4cal demos folder.

@taylorbell57
Copy link
Collaborator

Also, please look into the installation issues raised by the PyMC3 test

@kevin218
Copy link
Owner Author

Also, please look into the installation issues raised by the PyMC3 test

The issue is a conflict between jwst and pastasoss:
jwst 1.11.4 depends on scipy<1.10.0 and >=1.6.0
pastasoss 1.2.1 depends on scipy>=1.10.1
I have an issue in with pastasoss, but there's been no movement.

@kevin218 kevin218 merged commit 2de27af into main Feb 12, 2025
3 of 4 checks passed
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

Successfully merging this pull request may close these issues.

3 participants