Time interpolation for gridded binary file
Added by mithil shah almost 13 years ago
HI,
I am trying to interpolate the grib2 binary files (.bin) using CDO.
I tried
cdo sinfo wspd.bin and i got this error
Error (gribapiGetGrid) : Unsupported grid type: lcc.
Next i converted the grib file to NC.
after conversion, here is the sinfo on the converted nc wind file
Warning (cdfSetVar) : Inconsistent variable definition for longitude! Warning (cdfSetVar) : Inconsistent variable definition for latitude! File format: netCDF -1 : Institut Source Param Time Typ Grid Size Num Levels Num 1 : unknown unknown -1 var F32 739297 1 1 1 Horizontal grids : 1 : curvilinear > size : dim = 739297 nx = 1073 ny = 689 longitude : min = -130.103439 max = -60.8855591 degrees_east latitude : min = 20.1919994 max = 52.8076706 degrees_north available : xvals yvals Vertical grids : 1 : surface : 0 Time axis : 1 step RefTime = 2012-04-30 03:00:00 Units = hours Calendar = STANDARD YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss YYYY-MM-DD hh:mm:ss 2012-04-30 06:00:00 cdo sinfo: Processed 1 variable over 1 timestep. ( 0.11s )
I then tried to interpolate using
cdo -f nc -inttime,2012-04-30,6:00:00,1hour WindSpd_04300600.nc WindSpd_043006001.nc
and here is the resut
Warning (cdfSetVar) : Inconsistent variable definition for longitude! Warning (cdfSetVar) : Inconsistent variable definition for latitude! cdo inttime: Processed 739297 values from 1 variable over 1 timestep. ( 0.17s )
However the resulting file does not contain the wind variable.
here's sinfo on the output file from time interpolation
-1 : Institut Source Param Time Typ Grid Size Num Levels Num 1 : unknown unknown -1 con F32 739297 1 1 1 2 : unknown unknown -2 con F32 739297 1 1 1 Horizontal grids : 1 : generic > size : dim = 739297 nx = 1073 ny = 689 Vertical grids : 1 : surface : 0 cdo sinfo: Processed 2 variables. ( 0.00s )
Any ideas on how i can accomplish the interpolation?
Replies (1)
RE: Time interpolation for gridded binary file - Added by mithil shah almost 13 years ago
The Time interpolation issue is resolved. A small error on my part.
However, the question about how to read grib2 binary files (NOAA) still remains.