failed call to grib_set_long error
Added by Nikolay Yasinskiy over 6 years ago
Hello! I get an error while substracting fields of WRF and GFS. I selected temperature from both GRIB files and cdo sub infile1 infile2 outfile gives me this error:
!!! failed call to grib_set_long( grib_handle* h, "earthIsOblate", 1) !!!
stream_gribapi.c at line 2167: my_grib_set_long(gh, "earthIsOblate", earthIsOblate) failed: Key/value not found
Where could be the source of the problem?
I attached my files to the message. THey are both in WRF grid projection (GFS was remapped).
WRFPRS_d01.15_t_109.grb (315 KB) WRFPRS_d01.15_t_109.grb | WRF field of temperature | ||
gfs_remapped_wrf_t_109.grb (393 KB) gfs_remapped_wrf_t_109.grb | GFS field of temperature |
Replies (3)
RE: failed call to grib_set_long error - Added by Karin Meier-Fleischer over 6 years ago
Hi Nicolay,
which version are you using (cdo -V)? With version 1.9.2 I'm getting only a warning because the levels of the two files are not the same.
cdo sub WRFPRS_d01.15_t_109.grb gfs_remapped_wrf_t_109.grb outfile.grb cdo sub (Warning): Input parameters have different levels! cdo sub: Processed 429244 values from 2 variables over 2 timesteps ( 0.08s 29MB )
cdo sinfon WRFPRS_d01.15_t_109.grb File format : GRIB -1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name 1 : unknown unknown v instant 2 1 107311 1 P12 : var11 Grid coordinates : 1 : projection : points=107311 (449x239) mapping : lambert_conformal_conic x : 0 to 8064000 by 18000 m y : 0 to 4284000 by 18000 m Vertical coordinates : 1 : hybrid : levels=2 lev : 1 to 2 Time coordinate : 1 step RefTime = 2018-07-17 09:00:00 Units = hours Calendar = proleptic_gregorian YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss 2018-07-18 00:00:00 cdo sinfon: Processed 1 variable over 1 timestep ( 0.00s 13MB )
cdo sinfon gfs_remapped_wrf_t_109.grb File format : GRIB2 -1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name 1 : NCEP unknown v instant 2 1 107311 1 P15 : t Grid coordinates : 1 : projection : points=107311 (449x239) mapping : lambert_conformal_conic x : 0 to 8064000 by 18000 m y : 0 to 4284000 by 18000 m Vertical coordinates : 1 : generic (ltype=109) : levels=2 lev : 0 to 2 Time coordinate : 1 step RefTime = 2018-07-17 06:00:00 Units = hours Calendar = proleptic_gregorian YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss 2018-07-18 00:00:00 cdo sinfon: Processed 1 variable over 1 timestep ( 0.05s 27MB )
cdo info WRFPRS_d01.15_t_109.grb -1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID 1 : 2018-07-18 00:00:00 1 107311 0 : 267.26 286.38 306.04 : 11.2 2 : 2018-07-18 00:00:00 2 107311 0 : 266.89 286.91 306.54 : 11.2 cdo info: Processed 214622 values from 1 variable over 1 timestep ( 0.01s 14MB )
cdo info gfs_remapped_wrf_t_109.grb -1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID 1 : 2018-07-18 00:00:00 0 107311 0 : 207.68 224.88 253.11 : 0.0.0 2 : 2018-07-18 00:00:00 2 107311 0 : 4.4125e+10 4.0570e+12 1.1605e+13 : 0.0.0 cdo info: Processed 214622 values from 1 variable over 1 timestep ( 0.05s 28MB )
cdo sub WRFPRS_d01.15_t_109.grb gfs_remapped_wrf_t_109.grb outfile.grb
cdo sinfon outfile.grb File format : GRIB -1 : Institut Source T Steptype Levels Num Points Num Dtype : Parameter name 1 : unknown unknown v instant 2 1 107311 1 P12 : var11 Grid coordinates : 1 : projection : points=107311 (449x239) mapping : lambert_conformal_conic x : 0 to 8064000 by 18000 m y : 0 to 4284000 by 18000 m Vertical coordinates : 1 : hybrid : levels=2 lev : 1 to 2 Time coordinate : 1 step RefTime = 2018-07-17 09:00:00 Units = hours Calendar = proleptic_gregorian YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss 2018-07-18 00:00:00 cdo sinfon: Processed 1 variable over 1 timestep ( 0.01s 13MB )
cdo info WRFPRS_d01.15_t_109.grb -1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID 1 : 2018-07-18 00:00:00 1 107311 0 : 267.26 286.38 306.04 : 11.2 2 : 2018-07-18 00:00:00 2 107311 0 : 266.89 286.91 306.54 : 11.2 cdo info: Processed 214622 values from 1 variable over 1 timestep ( 0.01s 14MB )
cdo info gfs_remapped_wrf_t_109.grb -1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID 1 : 2018-07-18 00:00:00 0 107311 0 : 207.68 224.88 253.11 : 0.0.0 2 : 2018-07-18 00:00:00 2 107311 0 : 4.4125e+10 4.0570e+12 1.1605e+13 : 0.0.0 cdo info: Processed 214622 values from 1 variable over 1 timestep ( 0.05s 28MB )
cdo info outfile.grb -1 : Date Time Level Gridsize Miss : Minimum Mean Maximum : Parameter ID 1 : 2018-07-18 00:00:00 1 107311 0 : 21.512 61.502 97.668 : 11.2 2 : 2018-07-18 00:00:00 2 107311 0 : -1.1605e+13 -4.0568e+12 -4.3051e+10 : 11.2 cdo info: Processed 214622 values from 1 variable over 1 timestep ( 0.01s 14MB )
-Karin
RE: failed call to grib_set_long error - Added by Nikolay Yasinskiy over 6 years ago
My version is 1.9.0
RE: failed call to grib_set_long error - Added by Karin Meier-Fleischer over 6 years ago
It would be the best to upgrade to current version 1.9.4.
-Karin