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

set NaNs to 1 #880

Merged
merged 3 commits into from
Oct 23, 2024
Merged

set NaNs to 1 #880

merged 3 commits into from
Oct 23, 2024

Conversation

kmdeck
Copy link
Member

@kmdeck kmdeck commented Oct 23, 2024

Purpose

Sets clumping index to 1 if Nan in preprocessing of data.
Removes divide by zero in SIF measurement where canopy is not present.

Verified that Nans are not present in SIF and other output (besides canopy temp, which has NaNs where canopy is not present).

To-do

Content

Adds a nans_to_one function and uses in SpaceVaryingInput call.
Removes divide by zero in SIF measurement where canopy is not present by using max(VCmax25, eps(FT)), etc.


  • I have read and checked the items on the review checklist.

@kmdeck kmdeck enabled auto-merge October 23, 2024 14:17
@kmdeck
Copy link
Member Author

kmdeck commented Oct 23, 2024

This also addresses PR #877

@kmdeck kmdeck requested a review from braghiere October 23, 2024 15:57
@kmdeck kmdeck merged commit 3cb2bba into main Oct 23, 2024
18 checks passed
@kmdeck kmdeck deleted the kd/clumping_nan branch October 23, 2024 17:41
ϕf = kf / (kf + kd + kn) * (1 - ϕp)
ϕp0 = kp / max(kf + kp + kn, eps(FT))
ϕp = J / max(Jmax, eps(FT)) * ϕp0
ϕf = kf / max(kf + kp + kn, eps(FT)) * (1 - ϕp)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I belive it is kd instead of kp. Eq (7) in:

Raczka, B., Porcar-Castell, A., Magney, T., Lee, J.E., Köhler, P., Frankenberg, C., Grossmann, K., Logan, B.A., Stutz, J., Blanken, P.D. and Burns, S.P., 2019. Sustained Nonphotochemical Quenching Shapes the Seasonal Pattern of Solar-Induced Fluorescence at a High-Elevation Evergreen Forest. Journal of Geophysical Research: Biogeosciences, 124(7), pp.2005- 2020. https://doi.org/10.1029/2018JG004883

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Renato. let me make a quick PR to fix this

This was referenced Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants