-
Notifications
You must be signed in to change notification settings - Fork 10
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
Refactor to use diagnostics throughout #746
Conversation
We can add an ArrayWriter too. It would probably make single site much simpler. |
2ae3e38
to
59f93c6
Compare
4ad6766
to
70dcc38
Compare
0ae017a
to
f9999b3
Compare
SIF, AR, g_stomata, GPP, canopy_T, SW_u, LW_u, ER, ET, β, SHF, LHF, G, Rn = [ | ||
ClimaLand.Diagnostics.diagnostic_as_vectors(d_writer, diag_name, 1)[2][1:721] | ||
for diag_name in hourly_diag_name | ||
] # [1:721] only because summer subset of model output |
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 doesn't scale very well. ClimaLand.Diagnostics.diagnostic_as_vectors
returns the time too, can you use that to detect when it is summer instead?
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 agree that this old script had many hardcoded stuff that make it difficult to maintain, and should be refactored properly.
however for instance, we were doing summer only because there was no snow model. once we have snow, we will run the whole year/dataset. so this is temporary.
042ecc6
to
b57f2be
Compare
58015a5
to
ee3f7d0
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.
Looks good to me!
b43b42a
to
c8ac585
Compare
- diagnostics were added for net radiation, latent heat flux, sensible heat flux, and ground heat flux. - the function `diagnostic_as_vectors` was added, to get vector outputs from DictWriter. - water runoff was added to `run_fluxnet`. - `run_fluxnet` now uses diagnostics.
c8ac585
to
2d7c375
Compare
diagnostics_as_vector
function, to get diagnostics from DictWritersrun_fluxnet
closes #788