Skip to content

Commit

Permalink
Merge pull request #1716 from davemfish/bugfix/1693-documentation
Browse files Browse the repository at this point in the history
Corrections to args spec regarding evapotranspiration and preciptation
  • Loading branch information
emlys authored Dec 17, 2024
2 parents 3b9b2d1 + 8850bc4 commit f3c2a55
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
15 changes: 12 additions & 3 deletions src/natcap/invest/seasonal_water_yield/seasonal_water_yield.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,14 @@
"contents": {
# monthly et0 maps, each file ending in a number 1-12
"[MONTH]": {
**spec_utils.ET0,
"name": gettext("reference evapotranspiration"),
"type": "raster",
"bands": {
1: {
"type": "number",
"units": u.millimeter/u.month
}
},
"about": gettext(
"Twelve files, one for each month. File names must "
"end with the month number (1-12). For example, "
Expand All @@ -62,7 +69,8 @@
"about": gettext(
"Directory containing maps of reference evapotranspiration "
"for each month. Only .tif files should be in this folder "
"(no .tfw, .xml, etc files)."),
"(no .tfw, .xml, etc files). Required if User-Defined Local "
"Recharge is not selected."),
"name": gettext("ET0 directory")
},
"precip_dir": {
Expand All @@ -89,7 +97,8 @@
"about": gettext(
"Directory containing maps of monthly precipitation for each "
"month. Only .tif files should be in this folder (no .tfw, "
".xml, etc files)."),
".xml, etc files). Required if User-Defined Local Recharge is "
"not selected."),
"name": gettext("precipitation directory")
},
"dem_raster_path": {
Expand Down
4 changes: 2 additions & 2 deletions src/natcap/invest/spec_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@
"name": gettext("precipitation")
}
ET0 = {
"name": gettext("evapotranspiration"),
"name": gettext("reference evapotranspiration"),
"type": "raster",
"bands": {
1: {
"type": "number",
"units": u.millimeter
}
},
"about": gettext("Map of evapotranspiration values.")
"about": gettext("Map of reference evapotranspiration values.")
}
SOIL_GROUP = {
"type": "raster",
Expand Down

0 comments on commit f3c2a55

Please sign in to comment.