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

Commissioning extraction #27

Merged
merged 24 commits into from
Apr 3, 2024
Merged

Commissioning extraction #27

merged 24 commits into from
Apr 3, 2024

Conversation

cmccully
Copy link
Contributor

@cmccully cmccully commented Feb 26, 2024

This PR marks the fully commissioned extraction stage. This should mark the first fully usable production-ready version of the banzai-floyds pipeline.

The results of the commissioning tests are in the characterization_testing/Extraction jupyter notebook. Note that you have to run the wavelength calibration and fringe correction jupyter notebooks before the extraction notebook.

We perform optimal extraction ala Horne. Right now, I've removed all of the scaling of the telluric correction as the pipeline appears to better without. This probably should be revisited in the future.

Copy link
Contributor

@jchate6 jchate6 left a comment

Choose a reason for hiding this comment

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

I'm having trouble with the pip install.
Python 3.10.13

Failed to build astroscrappy banzai
ERROR: Could not build wheels for astroscrappy, banzai, which is required to install pyproject.toml-based projects

Any suggestions?

banzai_floyds/data/standards/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@jchate6 jchate6 left a comment

Choose a reason for hiding this comment

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

I'd really like some docs explaining the extraction process as a whole and summarizing the strategies we have used here. An explanation of and links to the various example jupyter notebooks seems really useful as well.

I clearly need to do some DB setup to properly use theExtraction jupyter notebook, but I'm not really sure what is required.

banzai_floyds/flux.py Outdated Show resolved Hide resolved
banzai_floyds/main.py Show resolved Hide resolved
banzai_floyds/extract.py Outdated Show resolved Hide resolved
banzai_floyds/fringe.py Outdated Show resolved Hide resolved
banzai_floyds/fringe.py Outdated Show resolved Hide resolved
banzai_floyds/utils/telluric_utils.py Show resolved Hide resolved
banzai_floyds/utils/telluric_utils.py Outdated Show resolved Hide resolved
banzai_floyds/utils/telluric_utils.py Outdated Show resolved Hide resolved
banzai_floyds/utils/telluric_utils.py Show resolved Hide resolved
@@ -32,6 +32,7 @@ def to_header(self):
header[f'POLYDOM{i + 1}'] = str(list(polynomial.domain))
for j, coef in enumerate(polynomial.coef):
header[f'COEF{i + 1}_{j}'] = coef
header['EXTNAME'] = 'WAVELENGTHS'
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this header keyword? Extension name? Does this have any other values? I'm not familiar with how this is used elsewhere.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a FITS standard keyword that defines the name of an extension. It allows you to index hdus with a name rather than just an integer, e.g.

hdu_list = fits.open('foo.fits')
hdu_list['WAVELENGTHS'].data

Copy link
Contributor

@jchate6 jchate6 left a comment

Choose a reason for hiding this comment

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

nice. thanks.

@cmccully cmccully merged commit 9681532 into main Apr 3, 2024
7 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.

2 participants