Generic Data Unsupported!
Added by Piyush Dahal about 5 years ago
Hello,
I received a model output netCDF data containing monthly groundwater and other related parameters. When I am trying to analyze this data in CDO it gives following error message
(Abort): No Lon/Lat, Gaussian or Lambert grid found (generic data unsupported)!
however, ncdump output of the data is as follows
ncdump -h HiGWMAT_WFDEI_TWS_2010_2016.nc
netcdf HiGWMAT_WFDEI_TWS_2010_2016 { dimensions: lon = 720 ; lat = 360 ; tstep = 84 ; variables: float LONGXY(lat, lon) ; LONGXY:units = "degrees_east" ; LONGXY:long_name = "longitude" ; LONGXY:mode = "time-invariant" ; float LATIXY(lat, lon) ; LATIXY:units = "degrees_north" ; LATIXY:long_name = "latitude" ; LATIXY:mode = "time-invariant" ; float GLSNW(tstep, lat, lon) ; GLSNW:units = "mm" ; GLSNW:long_name = "Snow Water Storage" ; GLSNW:valid_min = -652.14432255427 ; GLSNW:valid_max = 967.782470119287 ; GLSNW:mode = "time-dependent" ; float GW(tstep, lat, lon) ; GW:units = "mm" ; GW:long_name = "Groundwater Storage" ; GW:valid_min = -3481.84036975437 ; GW:valid_max = 4637.35731252035 ; GW:mode = "time-dependent" ; float TOTMODEL(tstep, lat, lon) ; TOTMODEL:units = "mm" ; TOTMODEL:long_name = "Terrestrial Water Storage" ; TOTMODEL:valid_min = -3426.93774303261 ; TOTMODEL:valid_max = 3280.74208058083 ; TOTMODEL:mode = "time-dependent" ; float gdriv(tstep, lat, lon) ; gdriv:units = "mm" ; gdriv:long_name = "River and Reservoir Storage" ; gdriv:valid_min = -3097.71149910821 ; gdriv:valid_max = 2159.46075736152 ; gdriv:mode = "time-dependent" ; float GLWC(tstep, lat, lon) ; GLWC:units = "mm" ; GLWC:long_name = "Canopy Water Storage" ; GLWC:valid_min = -1.09403525271369 ; GLWC:valid_max = 1.00970957375276 ; GLWC:mode = "time-dependent" ; float GLWSM(tstep, lat, lon) ; GLWSM:units = "mm" ; GLWSM:long_name = "Soil Water Storage" ; GLWSM:valid_min = -3473.60943773058 ; GLWSM:valid_max = 2961.72736295064 ; GLWSM:mode = "time-dependent" ; float GLWTOT(tstep, lat, lon) ; GLWTOT:units = "mm" ; GLWTOT:long_name = "Sub-surface Total Storage" ; GLWTOT:valid_min = -1462.63498263889 ; GLWTOT:valid_max = 1646.36593967014 ; GLWTOT:mode = "time-dependent" ; }
how can I convert this file to the CDO readable format? I read some previous post related to generic grided data and tried to solve the problem as suggested but didn't get succeed.
Thank You,
Piyush
Replies (1)
RE: Generic Data Unsupported! - Added by Karin Meier-Fleischer about 5 years ago
Hi Piyush,
your data is not CF compliant. You have to add the coordinates attribute to the variables.
E.g. Variable GLWTOT
cdo -setattribute,GLWTOT@coordinates="LATIXY LONGXY" HiGWMAT_WFDEI_TWS_2010_2016.nc HiGWMAT_WFDEI_TWS_2010_2016_with_coordinates.nc
Maybe time, in your case tstep, can also cause problems because it isn't CF compliant too.
-Karin