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

Adding dayside/nightside integrated temperature convenience method #9

Merged
merged 4 commits into from
Feb 15, 2021

Conversation

bmorris3
Copy link
Owner

The code in this PR implements a feature that both @KathrynJones1 and @mhooton have requested: integrated dayside/nightside temperatures from the model parameters.

This is implemented with a convenience method on the Model object which gets called like this:

from kelp import Planet, Model, Filter

f = 0.68
C_ml = [[0], 
        [0, 0.2, 0]]
p = Planet.from_name('HD 189733')
filt = Filter.from_name('IRAC 1')
m = Model(-0.8, 0.575, 4.5, 0, C_ml, 1, planet=p, filt=filt)

dayside, nightside = m.integrated_temperatures(f=f)

where dayside, nightside are the integrated dayside/nightside temperatures in units of Kelvin.

@bmorris3
Copy link
Owner Author

These tests are failing because of sphinx-doc/sphinx#8880, pinning sphinx version.

@bmorris3 bmorris3 merged commit 7cfe270 into master Feb 15, 2021
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.

None yet

1 participant