I want to subset a NetCDF file to extract a sub-period with cdo.
I run the following code in spyder
from cdo import *
cdo = Cdo()
cdo.select('startdate=2003-01-01,end_date=2016-12-31', input='PATH/temperature.nc', output='output.nc')
I use spyder 3.10 and have the message :
TypeError: expected str, bytes or os.PathLike object, not NoneType
when I run cdo = Cdo()
- Maybe I should not run cdo in spyder?
- Does the command is correct?