Skip to content

Commit

Permalink
Merge pull request #1572 from phargogh/bugfix/1571-swy-monthly-precip…
Browse files Browse the repository at this point in the history
…-units

Update units of SWY precip input rasters
  • Loading branch information
emlys committed May 10, 2024
2 parents 807a503 + cc178e6 commit d55bea1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ Unreleased Changes
to negative dimensions. https://github.com/natcap/invest/issues/1431
* Optimized the creation of the summary vector by minimizing the number of
times the target vector needs to be rasterized.
* Seasonal Water Yield
* Fixed an issue with the precip directory units. Units for these input
rasters are now correctly stated as mm/month.
https://github.com/natcap/invest/issues/1571
* Wind Energy
* Fixed a bug where some number inputs were not being properly cast to
``float`` or ``int`` types. If the inputs happened to be passed as
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@
"contents": {
# monthly precipitation maps, each file ending in a number 1-12
"[MONTH]": {
**spec_utils.PRECIP,
"type": "raster",
"bands": {
1: {
"type": "number",
"units": u.millimeter/u.month,
},
},
"name": gettext("precipitation"),
"about": gettext(
"Twelve files, one for each month. File names must "
"end with the month number (1-12). For example, "
Expand Down

0 comments on commit d55bea1

Please sign in to comment.