From c2fd6d6b60f0f9d78b89dd3a7c1a96d4bafbcfac Mon Sep 17 00:00:00 2001 From: "Edward.Safford" Date: Wed, 3 Jul 2024 14:26:07 +0000 Subject: [PATCH] Ref #197 Fix handling missing station data files. --- src/eva/data/mon_data_space.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/eva/data/mon_data_space.py b/src/eva/data/mon_data_space.py index f4ed722..567ec1b 100644 --- a/src/eva/data/mon_data_space.py +++ b/src/eva/data/mon_data_space.py @@ -799,6 +799,10 @@ def read_stn_ieee(self, file_name, coords, dims, ndims_used, dims_arr, dims['ydef'] = numobs f.close() + else: + rtn_array = np.zeros((len(vars),1,1), float) + dims['ydef'] = 1 + rtn_lat = np.asarray(lat).reshape(-1) rtn_lon = np.asarray(lon).reshape(-1)