Hello i have a neetcdf4 file with monthly precipitation data for over 10 years. what i am trying to do is :
- read the file
- select a subset area based on longitude latitude
- i need to calculate the moving average per 3 years
- plot the results
dataset = Dataset('test.nc','r',format='NETCDF4') lons = dataset.variables['lon'][:] lats = dataset.variables['lat'][:] times = dataset.variables['time'][:] times_units = dataset.variables['time'].units prep_solide = dataset.variables['PREC'][:,:,:] prec_units =dataset.variables['PREC'].units dates = num2date(times[:],' months since 1801-01-01 00:00:00')
The error i keep getting is
ValueError: unsupported time units
is there any other way to fix this error ?