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

Running PET with CFE and Topmodel #365

Open
lcunha0118 opened this issue Jan 12, 2022 · 2 comments
Open

Running PET with CFE and Topmodel #365

lcunha0118 opened this issue Jan 12, 2022 · 2 comments

Comments

@lcunha0118
Copy link

lcunha0118 commented Jan 12, 2022

When running PET with CFE and Topmodel we get some warnings for unit conversion. While the simulations run, the results are not correct, since unit conversion was not performed correctly. Since PET is not an external submodule, the issue has to be fixed within NextGen or pet should be included as an external module (in this case, we would need the capability of running more than 2 modules).

Current behavior

Running PET functions (internal to nextgen) with topmodel or CFE.

units of rainfall in forcing are mm/s
units of rainfall in pet function is "kg m-2" according to https://github.com/NOAA-OWP/cfe/blob/master/forcing_code/src/bmi_pet.c
units of rainfall in cfe is mm/h

Two warnings are returned:

  1. Unable to convert mm s-1 to kg m-2: rainfall between forcing and PET
    Suggested fix: change units in PET function to mm h-1

  2. Unable to process empty units value for pairing "" "mm h-1": not sure where this is originating. But my guess is that somehow units for rainfall might be removed after error 1 happens, which creates a variable with no units.

Expected behavior

If units are set correctly, no warning on conversion should be outputted.

Steps to replicate behavior (include URLs)

Screenshots

@lcunha0118
Copy link
Author

@hellkite500 I just saw there was another issue on this: Dealing with internal provided evapotranspiration units #352. Sorry for the replication. By @jmframe comment, the library does not use rainfall, but I think issue (1) is causing issue (2).

@mattw-nws mattw-nws added CI/CD and removed CI/CD labels Jan 13, 2023
@mattw-nws
Copy link
Contributor

Need to bring this back up and determine if it's still needed...there are a number of things here including the mm/s/h <-> kg/m^2/h equivalency, but I think the core issue with the internal PET being used (and not supporting unit conversion) is now mostly overcome-by-events after #387 ... we don't recommend use of the internal PET anymore and generally consider it deprecated.

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

No branches or pull requests

2 participants