Project

General

Profile

generic type

Added by Elham Fakhari over 6 years ago

Hello
I want to cut spacial regions from nc4 file I have used below command
cdo sellonlatbox,40,65,20,40 ndvi3g_geo_v1_1994_0106.nc4 elham.nc
but I got this warning and error:
Warning (cdfScanVarAttributes) : Inconsistent data type for attribute ndvi:valid_range, ignored!
cdo sellonlatbox: Unsupported grid type: generic

cdo sellonlatbox (Abort): Unsupported grid type!

this is the result of sinfov

cdo sinfov ndvi3g_geo_v1_1994_0106.nc4
Warning (cdfScanVarAttributes) : Inconsistent data type for attribute ndvi:valid_range, ignored!
File format : netCDF4 classic
-1 : Institut Source Ttype Levels Num Points Num Dtype : Parameter name
1 : unknown unknown instant 1 1 1 1 I16 : satellites
2 : unknown unknown instant 1 1 9331200 2 I16 : ndvi
3 : unknown unknown instant 1 1 9331200 2 I16 : percentile
Grid coordinates :
1 : generic : points=1
2 : generic : points=9331200 (4320x2160)
lon : -179.958 to 179.958 by 0.0833333
lat : 89.9583 to -89.9583 by -0.0833333
Vertical coordinates :
1 : surface : levels=1
Time coordinate : 12 steps
YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss
0000-00-01 00:00:00 0000-00-01 12:00:00 0000-00-02 00:00:00 0000-00-02 12:00:00
0000-00-03 00:00:00 0000-00-03 12:00:00 0000-00-04 00:00:00 0000-00-04 12:00:00
0000-00-05 00:00:00 0000-00-05 12:00:00 0000-00-06 00:00:00 0000-00-06 12:00:00
cdo sinfon: Processed 3 variables over 12 timesteps ( 0.01s )

I tried all previous solution that were in forum but non of them worked.
would you please tell me the solution


Replies (2)

RE: generic type - Added by Uwe Schulzweida over 6 years ago

It seems that the units attribute is missing for the variables lon and lat. You can add this missing information with the NCO operator ncatted. Here is an example:

ncatted -a units,lat,c,c,"degrees_north"  -a units,lon,c,c,"degrees_east"  <filename>

RE: generic type - Added by Elham Fakhari over 6 years ago

Dear Uwe Schulzweida
Thanks for your solution.

    (1-2/2)