Skip to content

Commit

Permalink
increase radiation QC threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed May 11, 2023
1 parent 42bd64f commit 58ee836
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/cligen/daily_clifile_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,16 @@ def load_iemre(nc, data, valid):
ncdata = (
nc.variables["rsds"][offset, :, :].filled(np.nan)
* 86400.0
/ 1000000.0
/ 1_000_000.0
* 23.9
)
# Default to a value of 300 when this data is missing, for some reason
nn = NearestNDInterpolator(
(np.ravel(lons), np.ravel(lats)), np.ravel(ncdata)
)
# What's a reasonable max bounts? Well, 50 MJ/d should be an extreme high
data["solar"][:] = iemre_bounds_check(
"rsds", nn(data["lon"], data["lat"]), 0, 1000
"rsds", nn(data["lon"], data["lat"]), 0, 50.0 * 23.9
)

ncdata = convert_value(
Expand Down

0 comments on commit 58ee836

Please sign in to comment.