From 4e5d1a872cdf53274b9c28a1eb39481ffbb68781 Mon Sep 17 00:00:00 2001 From: James Douglass Date: Thu, 9 May 2024 10:58:01 -0700 Subject: [PATCH] Updating units of SWY precip inputs. RE:#1571 --- .../invest/seasonal_water_yield/seasonal_water_yield.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/natcap/invest/seasonal_water_yield/seasonal_water_yield.py b/src/natcap/invest/seasonal_water_yield/seasonal_water_yield.py index 4f8d7396ac..fc2b6c18f7 100644 --- a/src/natcap/invest/seasonal_water_yield/seasonal_water_yield.py +++ b/src/natcap/invest/seasonal_water_yield/seasonal_water_yield.py @@ -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, "