-
Notifications
You must be signed in to change notification settings - Fork 52
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
Create a code pathway to return integrated energy level fluxes when not running a climate calculation #230
Labels
Comments
imalsky
added a commit
to imalsky/picaso
that referenced
this issue
Jan 24, 2025
…alculations (natashabatalha#230) - Implemented a code pathway to return layer fluxes when not running a climate calculation. - Updated the way `compress_disco` is called for layer fluxes: - Now integrates fluxes for each layer. - Still returns the albedo for the top-of-atmosphere calculation. - Uncertainty: The current use of `compress_disco` for integrating wavelengths needs verification to confirm correct functionality. Issues: - Encountered an issue when setting `F0PI = np.zeros(nwno) + 1`. This may relate to `opacityclass.unshifted_stellar_spec`. - Replacing zeros/NaNs in stellar spectra with interpolated values. Recommend checking by plotting `classname.inputs['star']['wno']` vs `classname.inputs['star']['flux']`. Next Steps: - Investigate the error with `F0PI` and verify the wavelength integration behavior.
imalsky
added a commit
to imalsky/picaso
that referenced
this issue
Jan 25, 2025
…alculations (natashabatalha#230) - Implemented a code pathway to return layer fluxes when not running a climate calculation. - Updated the way `compress_disco` is called for layer fluxes: - Now integrates fluxes for each layer. - Still returns the albedo for the top-of-atmosphere calculation. - Uncertainty: The current use of `compress_disco` for integrating wavelengths needs verification to confirm correct functionality. Issues: - Encountered an issue when setting `F0PI = np.zeros(nwno) + 1`. This may relate to `opacityclass.unshifted_stellar_spec`. - Replacing zeros/NaNs in stellar spectra with interpolated values. Recommend checking by plotting `classname.inputs['star']['wno']` vs `classname.inputs['star']['flux']`. Next Steps: - Investigate the error with `F0PI` and verify the wavelength integration behavior.
imalsky
added a commit
to imalsky/picaso
that referenced
this issue
Jan 25, 2025
…alculations (natashabatalha#230) - Implemented a code pathway to return layer fluxes when not running a climate calculation. - Updated the way `compress_disco` is called for layer fluxes: - Now integrates fluxes for each layer. - Still returns the albedo for the top-of-atmosphere calculation. - Uncertainty: The current use of `compress_disco` for integrating wavelengths needs verification to confirm correct functionality. Issues: - Encountered an error when setting `F0PI = np.zeros(nwno) + 1`. This may relate to `opacityclass.unshifted_stellar_spec`. - Replacing zeros/NaNs in stellar spectra with interpolated values. Recommend checking by plotting `classname.inputs['star']['wno']` vs `classname.inputs['star']['flux']`. Next Steps: - Investigate the error with `F0PI` and verify the wavelength integration behavior.
This was referenced Feb 4, 2025
All done and merged to branch #28 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior:
And gets back integrated level fluxes
Changes needed for thermal
change:
to
Changes needed for reflected
define variable
get_lvl_flx
via approx dictionaryget_lvl_flux=self.inputs['approx']['get_lvl_flux']
then change
elif 'climate' in self.inputs['calculation']
to(('climate' in self.inputs['calculation']) or (get_lvl_flux))
The text was updated successfully, but these errors were encountered: