Skip to content

Provide some sanity checks an reasonable behavoir for some inv…#56

Open
hellkite500 wants to merge 2 commits intoNOAA-OWP:masterfrom
hellkite500:forcing-validation
Open

Provide some sanity checks an reasonable behavoir for some inv…#56
hellkite500 wants to merge 2 commits intoNOAA-OWP:masterfrom
hellkite500:forcing-validation

Conversation

@hellkite500
Copy link
Copy Markdown
Contributor

Some simple forcing validation to prevent errors and unrealistic PET under certain forcing conditions.

// The setting of forcing to sub model structs in this code is a little wacky
// and should probably be refactored...but for now we will just sanity check
// the AORC values here since this is the predominant code path for running pet at the moment...
if(model->aorc.air_temperature_2m_K <= 0.0 || model->aorc.air_temperature_2m_K > 350.0){
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

should this also warning on nans?

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.

2 participants