From 46764ef09441f2a25d4b83b87ede957f70e0c1c2 Mon Sep 17 00:00:00 2001 From: Oriana Chegwidden Date: Fri, 3 Jun 2022 00:56:21 +0000 Subject: [PATCH] fix scrf data array for temp --- cmip6_downscaling/methods/gard/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmip6_downscaling/methods/gard/utils.py b/cmip6_downscaling/methods/gard/utils.py index efaaabab..27ffdf72 100644 --- a/cmip6_downscaling/methods/gard/utils.py +++ b/cmip6_downscaling/methods/gard/utils.py @@ -80,6 +80,6 @@ def add_random_effects( downscaled = downscaled.where(downscaled >= 0, 0) else: - downscaled = model_output['pred'] + scrf['scrf'] * model_output['prediction_error'] + downscaled = model_output['pred'] + scrf * model_output['prediction_error'] return downscaled.to_dataset(name=run_parameters.variable)