Project

General

Profile

Error (cdf_enddef)

Added by Nurul Ain over 1 year ago

Hi. I am trying to,

cdo selyear,2010 -selvar,u era5_uv_2001-2018_surface.nc era5_uv_2010_surface_u.nc

But, i got Error (cdf_enddef) and Error (cdf_close) : Input/output error

xubuntu@ubuntu:/mnt/hgfs/drought/25CHIRPS/mdpi/ERA5$ ncdump -h era5_uv_2001-2018_surface_u_standard.nc
netcdf era5_uv_2001-2018_surface_u_standard {
dimensions:
time = UNLIMITED ; // (157776 currently)
longitude = 85 ;
latitude = 33 ;
level = 9 ;
variables:
double time(time) ;
time:standard_name = "time" ;
time:long_name = "time" ;
time:units = "hours since 1900-01-01 00:00:00.0" ;
time:calendar = "standard" ;
time:axis = "T" ;
float longitude(longitude) ;
longitude:standard_name = "longitude" ;
longitude:long_name = "longitude" ;
longitude:units = "degrees_east" ;
longitude:axis = "X" ;
float latitude(latitude) ;
latitude:standard_name = "latitude" ;
latitude:long_name = "latitude" ;
latitude:units = "degrees_north" ;
latitude:axis = "Y" ;
double level(level) ;
level:standard_name = "air_pressure" ;
level:long_name = "pressure_level" ;
level:units = "millibars" ;
level:positive = "down" ;
level:axis = "Z" ;
float u(time, level, latitude, longitude) ;
u:standard_name = "eastward_wind" ;
u:long_name = "U component of wind" ;
u:units = "m s**-1" ;
u:_FillValue = -32767.f ;
u:missing_value = -32767.f ;

This is the file that I need to extract year 2010.

Thank you in advance!


Replies (3)

RE: Error (cdf_enddef) - Added by Estanislao Gavilan over 1 year ago

Try add "-selyear,2010", also you might need to add the coordinate attribute to your variable

RE: Error (cdf_enddef) - Added by Nurul Ain over 1 year ago

Thank you very much!

RE: Error (cdf_enddef) - Added by Ralf Mueller over 1 year ago

Another options might be to avoid operator chains for selection and use the select operator

happy new year ;-)
ralf

    (1-3/3)