You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only two options here are to sum all the opacities when ngauss==1 and if there are gauss ck points it just sums the gauss opacities (does not take into account mixing ratios).
Problem:
If user runs
it would pull the HDF5 individual molecule opacity files BUT the code would break because
opacityclass.molecular_opa
is not definedhttps://github.com/natashabatalha/picaso/blob/bfefda1ef78ea220b7cb8ae988d7f0b7fc53dd45/picaso/optics.py#L251C1-L256C41
The only two options here are to sum all the opacities when ngauss==1 and if there are gauss ck points it just sums the gauss opacities (does not take into account mixing ratios).
Code addition
In RetrieveCKs if
deq=True
:picaso/picaso/optics.py
Line 634 in bfefda1
add:
self.gases_fly=gases_fly
Now go through function passing and eliminate
gases_fly
as an input variable to those functions. For example, get_opacities_deq_onfly and mix_my_opacities_gasesflyAlso eliminate
bundle
to Last, deletebundle
as an input to get_opacities_deq_onfly and mix_my_opacities_gasesflyRight now bundle is being used to get mixing ratios however, those are already in atmosphere class as :
atmosphere.layer['mixingratios']
so you can change these lines https://github.com/natashabatalha/picaso/blob/bfefda1ef78ea220b7cb8ae988d7f0b7fc53dd45/picaso/optics.py#L1150C1-L1152C75
to
Then can add another piece to this elif statement:
Finally, do a
grep
onget_opacities_deq_onfly
andmix_my_opacities_gasesfly
and remove thegases_fly
andbundle
input throughout the code.The text was updated successfully, but these errors were encountered: