diff --git a/icepyx/core/read.py b/icepyx/core/read.py index b3212aef2..b731fb90b 100644 --- a/icepyx/core/read.py +++ b/icepyx/core/read.py @@ -553,6 +553,8 @@ def _combine_nested_vars(is2ds, ds, grp_path, wanted_dict): pass ds = ds[grp_spec_vars].swap_dims({"delta_time": "photon_idx"}) + # add the rest of the dimensions of length 1 from is2ds to ds + ds = ds.expand_dims(dim=[dim for dim in is2ds.dims if is2ds[dim].size == 1]) is2ds = is2ds.assign(ds) return is2ds @@ -812,7 +814,7 @@ def _build_single_file_dataset(self, file, groups_list): # if there are any deeper nested variables, # get those so they have actual coordinates and add them - # this may apply to (at a minimum): ATL08 + # this may apply to (at a minimum): ATL06, ATL08 if any(grp_path in grp_path2 for grp_path2 in wanted_groups_list): for grp_path2 in wanted_groups_list: if grp_path in grp_path2: