Hi everyone, I’m running into some issues reading data from a netcdf file in a python notebook. I hope this is the right place to ask for some advice on this problem.
The code what I use to read the netcdf file:
loadfiles3 = glob.glob(path3) with nc.Dataset(loadfiles3) as d: lon_ice_age = d['longitude'][:,:] lat_ice_age = d['latitude'][:,:] iage_NASA = d['age_of_sea_ice'][:,:,:] #(time, y, x)
Usually this works for me, but with this file I get a dead kernel every time I try to run it. Could it be due to the fact that the data type of ‘age_of_sea_ice’ variable in the netcdf file is ubyte? Does anyone have an idea how to read such a data type?