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
MolecularAtmosphere.ussa_1976()
fix
#334
Conversation
b581e37
to
3dbade8
Compare
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.
Hi @nollety, thanks for taking care of this. I made a few specific comments; in addition, I have a couple of general comments / questions:
- Please briefly document the new syntax in this PR. It is referenced by the change log and will help users upgrade their codebase if they need.
- Depending on the number of files, is it much more harmlful to
xr.open_mfdataset()
all the files? Doing so would considerably simplify the logic.
tests/02_eradiate/01_unit/scenes/atmosphere/test_molecular_atmosphere.py
Outdated
Show resolved
Hide resolved
tests/02_eradiate/01_unit/scenes/atmosphere/test_molecular_atmosphere.py
Outdated
Show resolved
Hide resolved
This is also planned for an upgrade with thermoprops-next (support for customized atmospheric profiles). |
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.
Hi @nollety, I have a few more comments.
tests/02_eradiate/01_unit/scenes/atmosphere/test_molecular_atmosphere.py
Outdated
Show resolved
Hide resolved
tests/02_eradiate/01_unit/scenes/atmosphere/test_molecular_atmosphere.py
Outdated
Show resolved
Hide resolved
All tests passed except
|
This is unrelated with this PR. The test using the new illumination model barely passes the threshold and fails on several of my machines, but not always. I'll try and fix that now. |
Thanks @nollety, looks like we're good to go 🚀 |
Description
Hotfix for an issue described in #332, that affects
MolecularAtmosphere.ussa_1976()
.This fix is not intended to remain very long; I expect the next atmosphere design (due for end of the month) to include a default (ckd/mono) absorption dataset that supports most spectral settings so that the default atmosphere constructor can be used across many (spectral and thermophysical) settings.
Changes
I have added a
wavelength_range
optional (defaults to 545-555 nm) parameter to theMolecularAtmosphere.ussa_1976
constructor that provide the information required for the constructor to automatically open the relevant absorption datasets. This makes the default constructor usable again:New usage
To instantiate a USSA 1976 molecular atmosphere:
This atmosphere can be integrated in any experiment targetting wavelengths within [545, 555] nm
Outside of [545, 555] nm, specify the desired wavelength range, e.g.:
Notes
Follow-up/related to: Experiments context used for initialization
Checklist
main
branch