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
I'm trying to join multiple netCDF files with the following:
import xarray as xr
combined = xr.open_mfdataset('Burst*.nc',combine="nested", concat_dim="time", group="Data/Burst")
combined.to_netcdf('nc_combined.nc')
When running the lines interactively, everything works, but when running it as a script I get the following error multiple times:
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/xarray/backends/file_manager.py", line 246, in del
TypeError: 'NoneType' object is not callable
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to join multiple netCDF files with the following:
When running the lines interactively, everything works, but when running it as a script I get the following error multiple times:
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/xarray/backends/file_manager.py", line 246, in del
TypeError: 'NoneType' object is not callable
Thanks,
Paul
Beta Was this translation helpful? Give feedback.
All reactions