Regarding : Unsupported grid type: generic in setonlatbox
Added by ankit bhandari about 4 years ago
Dear Sir
I am using my test_file ti cut a small area out of it I am getting error of "Unsupported grid type: generic". What is the issue with the file, as file is having all the coordinates .
.
cdo sellonlatbox,72.25,75,24.75,22 test_file .nc tt1.nc
cdo sellonlatbox: Unsupported grid type: generic
cdo sellonlatbox (Abort): Unsupported grid type!
netcdf test_file {
dimensions:
lon = 115 ;
lat = 115 ;
time = UNLIMITED ; // (30 currently)
variables:
double lon(lon) ;
lon:axis = "X" ;
double lat(lat) ;
lat:axis = "Y" ;
double time(time) ;
time:standard_name = "time" ;
time:units = "days since 2006-1-1 12:00:00" ;
time:calendar = "365_day" ;
time:axis = "T" ;
double tasmax(time, lat, lon) ;
tasmax:_FillValue = NaN ;
tasmax:missing_value = NaN ;
test_file.nc (3.05 MB) test_file.nc | file |
Replies (3)
RE: Regarding : Unsupported grid type: generic in setonlatbox - Added by Karin Meier-Fleischer about 4 years ago
Hi Ankuit,
the coordinate values lat and lon do not have the attribute units which let CDO handle it as a generic grid.
Add attributes to file:
ncatted -O -a units,lat,o,c,"degrees north" -a units,lon,o,c,"degrees east" test_file.nc
Select region:
cdo sellonlatbox,72.25,75,24.75,22 test_file.nc tt1.nc
Check output file:
cdo sinfon tt1.nc File format : NetCDF4 -1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name 1 : unknown unknown v instant 1 1 121 1 F64 : tasmax Grid coordinates : 1 : lonlat : points=121 (11x11) lon : 72.375 to 74.875 by 0.25 degrees east lat : 22.125 to 24.625 by 0.25 degrees north Vertical coordinates : 1 : surface : levels=1 Time coordinate : 30 steps RefTime = 2006-01-01 12:00:00 Units = days Calendar = 365_day YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss 2006-01-01 12:00:00 2006-01-02 12:00:00 2006-01-03 12:00:00 2006-01-04 12:00:00 2006-01-05 12:00:00 2006-01-06 12:00:00 2006-01-07 12:00:00 2006-01-08 12:00:00 2006-01-09 12:00:00 2006-01-10 12:00:00 2006-01-11 12:00:00 2006-01-12 12:00:00 2006-01-13 12:00:00 2006-01-14 12:00:00 2006-01-15 12:00:00 2006-01-16 12:00:00 2006-01-17 12:00:00 2006-01-18 12:00:00 2006-01-19 12:00:00 2006-01-20 12:00:00 2006-01-21 12:00:00 2006-01-22 12:00:00 2006-01-23 12:00:00 2006-01-24 12:00:00 2006-01-25 12:00:00 2006-01-26 12:00:00 2006-01-27 12:00:00 2006-01-28 12:00:00 2006-01-29 12:00:00 2006-01-30 12:00:00 cdo sinfon: Processed 1 variable over 30 timesteps [0.01s 10MB].
-Karin
RE: Regarding : Unsupported grid type: generic in setonlatbox - Added by ankit bhandari about 4 years ago
Thanks Karin
But again I am getting the same error in my computer. What is the reason?
HP-Pavilion-Notebook:~/Downloads$ ncatted -O -a units,lat,o,c,"degrees north" -a units,lon,o,c,"degrees east" test_file.nc
-HP-Pavilion-Notebook:~/Downloads$ cdo sellonlatbox,72.25,75,24.75,22 test_file.nc tt1.nc
cdo sellonlatbox: Unsupported grid type: generic
cdo sellonlatbox (Abort): Unsupported grid type!
Is this because of CDO version:
As I am using Climate Data Operators version 1.9.3 (http://mpimet.mpg.de/cdo)
CXX Compiler: g++ -g -O2 -fdebug-prefix-map=/build/cdo-g3Qjnd/cdo-1.9.3+dfsg.1=. -fstack-protector-strong -Wformat -Werror=format-security -fopenmp
CXX version : g++ (Ubuntu 7.3.0-1ubuntu1) 7.3.0
C Compiler: gcc -g -O2 -fdebug-prefix-map=/build/cdo-g3Qjnd/cdo-1.9.3+dfsg.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -pedantic -fPIC -fopenmp
C version : gcc (Ubuntu 7.3.0-1ubuntu1) 7.3.0
F77 Compiler: f77 -g -O2 -fdebug-prefix-map=/build/cdo-g3Qjnd/cdo-1.9.3+dfsg.1=. -fstack-protector-strong
F77 version : unknown
Features: 6GB C++14 Fortran DATA PTHREADS OpenMP45 HDF5 NC4/HDF5/threadsafe OPeNDAP SZ UDUNITS2 PROJ.4 MAGICS CURL FFTW3 SSE2
Libraries: HDF5/1.10.0 proj/4.93 curl/7.58.0
Filetypes: srv ext ieg grb1 grb2 nc1 nc2 nc4 nc4c nc5
CDI library version : 1.9.3
GRIB_API library version : 2.6.0
NetCDF library version : 4.6.0 of Feb 9 2018 19:21:24 $
HDF5 library version : library undefined
EXSE library version : 1.4.0
FILE library version : 1.8.3
Pls reply?
RE: Regarding : Unsupported grid type: generic in setonlatbox - Added by Karin Meier-Fleischer about 4 years ago
Maybe it is caused by the old version. Please, upgrade to the newest version.