-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
…sts pass now because I switched out the background fitting algorithm.
… which is a little weird that it works.
There was a problem hiding this 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?
…s into commission-extraction
…making it easier to test. Increased the memory on the pods in hopes of getting rid of the flat stacking crashes.
There was a problem hiding this 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.
@@ -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' |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice. thanks.
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.