From 2c1e6aab1078518c5878b7aa55d948cd56e7096b Mon Sep 17 00:00:00 2001 From: jklenzing Date: Thu, 3 Aug 2023 14:29:13 -0400 Subject: [PATCH] BUG: combine single value list --- pysatNASA/instruments/methods/cdaweb.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pysatNASA/instruments/methods/cdaweb.py b/pysatNASA/instruments/methods/cdaweb.py index 235090eb..5a2154bc 100644 --- a/pysatNASA/instruments/methods/cdaweb.py +++ b/pysatNASA/instruments/methods/cdaweb.py @@ -386,9 +386,12 @@ def load_xarray(fnames, tag='', inst_id='', ldata.append(temp_data) # Combine individual files together, concat along epoch - if len(ldata) > 0: + if len(ldata) > 1: data = xr.combine_nested(ldata, epoch_name, combine_attrs='override') + else: + data = ldata[0] + all_vars = io.xarray_all_vars(data)