I'm trying to use the code but I always have the problem with this part:
if '.nc4' in file:
try:
with xr.open_mfdataset(field_name + '/' + loc + '/' + file, preprocess=extract_date) as df:
dfs.append(df.to_dataframe())
except:
print('Issue with file ' + file)
All of my files enter in the exception so when the code try to concatenate nothing happens. Can someone help me?
I'm trying to use the code but I always have the problem with this part:
if '.nc4' in file: try: with xr.open_mfdataset(field_name + '/' + loc + '/' + file, preprocess=extract_date) as df: dfs.append(df.to_dataframe()) except: print('Issue with file ' + file)
All of my files enter in the exception so when the code try to concatenate nothing happens. Can someone help me?