From 727af018c7155a84798b33adc423076e2bd0be26 Mon Sep 17 00:00:00 2001 From: Eric Yvorchuk Date: Mon, 15 Apr 2024 12:37:51 -0700 Subject: [PATCH] Rename tasmean to tg for unit options --- chickadee/io.py | 4 ++-- chickadee/utils.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/chickadee/io.py b/chickadee/io.py index d336ab6..42a5654 100644 --- a/chickadee/io.py +++ b/chickadee/io.py @@ -83,9 +83,9 @@ data_type="string", ), LiteralInput( - "tasmean_units", + "tg_units", "Tasmean Units", - abstract="Units used for tasmean in output file", + abstract="Units used for tg (tasmean) in output file", max_occurs=1, default="celsius", data_type="string", diff --git a/chickadee/utils.py b/chickadee/utils.py index 3de4888..7307acf 100644 --- a/chickadee/utils.py +++ b/chickadee/utils.py @@ -34,7 +34,7 @@ def set_general_options( n_pr_bool, tasmax_units, tasmin_units, - tasmean_units, + tg_units, pr_units, max_gb, start_date, @@ -46,7 +46,7 @@ def set_general_options( max.GB={max_gb}, check.units={r_boolean(units_bool)}, check.neg.precip={r_boolean(n_pr_bool)}, - target.units=c(tasmax='{tasmax_units}', tasmin='{tasmin_units}', tasmean='{tasmean_units}', pr='{pr_units}'), + target.units=c(tasmax='{tasmax_units}', tasmin='{tasmin_units}', tg='{tg_units}', pr='{pr_units}'), calibration.start=as.POSIXct('{start_date}', tz='GMT'), calibration.end=as.POSIXct('{end_date}', tz='GMT') )