Skip to content

Commit

Permalink
Merge pull request #188 from Ouranosinc/clip_precip
Browse files Browse the repository at this point in the history
Clip minimum values for tp and sf
  • Loading branch information
Zeitsperre authored Jun 10, 2024
2 parents 51dc513 + 9d5392d commit e103f76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ New features
^^^^^^^^^^^^
* Aggregation operations now support more variables (`hur`, `hurs`, `huss`, `rlds`, `ta`, `tdp`, `ua`, `uas`, `va`, `vas`)
* `RDRDv21` has been added as a dataset to be converted.
* Minimum values of `0 kg m2 s-1` has been set for both `tp` and `sf` variables in ERA5 and ERA5-Land projects.

Bug fixes
^^^^^^^^^
Expand Down
12 changes: 12 additions & 0 deletions miranda/convert/data/ecmwf_cf_attrs.json
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@
},
"sf": {
"_cf_variable_name": "prsn",
"_clip_values": {
"all": {
"context": "hydro",
"min": "0 kg m-2 s-1"
}
},
"_corrected_units": "m",
"_invert_sign": false,
"_offset_time": {
Expand Down Expand Up @@ -436,6 +442,12 @@
},
"tp": {
"_cf_variable_name": "pr",
"_clip_values": {
"all": {
"context": "hydro",
"min": "0 kg m-2 s-1"
}
},
"_corrected_units": false,
"_invert_sign": false,
"_offset_time": true,
Expand Down

0 comments on commit e103f76

Please sign in to comment.