You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lines 341 through 347 needs to be improved to check each group if the lat/lon variable exist. Then read in the nc group into an xarray dataset. Lat and lon var names should be defined before this code block.
with netCDF4.Dataset(subsetted_filepath) as f:
for g in f.groups:
ds = xarray.open_dataset(subsetted_filepath, group=g, decode_times=False)
if len(ds.variables):
group = g
subsetted_ds = ds
else:
ds.close()
lat_var_name, lon_var_name = get_lat_lon_var_names(subsetted_ds, collection_variables)
The text was updated successfully, but these errors were encountered:
lines 341 through 347 needs to be improved to check each group if the lat/lon variable exist. Then read in the nc group into an xarray dataset. Lat and lon var names should be defined before this code block.
The text was updated successfully, but these errors were encountered: