From 8c9efe9965dd851d4d692c716e16950d5fb2e132 Mon Sep 17 00:00:00 2001 From: freeman-lab Date: Wed, 15 Dec 2021 08:33:02 -0800 Subject: [PATCH] xarray fix --- carbonplan_forest_risks/collect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/carbonplan_forest_risks/collect.py b/carbonplan_forest_risks/collect.py index 1d55c67..fffc9a4 100644 --- a/carbonplan_forest_risks/collect.py +++ b/carbonplan_forest_risks/collect.py @@ -7,8 +7,8 @@ def fire(y, src, inds=None): da['x'] = src.x da['y'] = src.y da['time'] = src.time - da['lat'] = (['y', 'x'], src['lat']) - da['lon'] = (['y', 'x'], src['lon']) + da['lat'] = (['y', 'x'], src['lat'].data) + da['lon'] = (['y', 'x'], src['lon'].data) shape = (len(src.time), len(src.y), len(src.x)) if inds is None: