R可以读GRIB文件(当它不是光栅),并将其转换为ASCII文件?(Can R read grib

2019-08-04 01:23发布

我想读这个GRIB文件,但我得到了一个error.is那里,我们可以解决这个问题的方法

    grib <- readGDAL("C:\\file.grib") 

Error in .local(.Object, ...) : 
  grib is a grib file, but no raster dataset was successfully identified.

Answer 1:

它不是的R问题。

使用@中,我有这样的:

gdalinfo --debug on H14_2011010400.grib 

GRIB: Undefined parameter table (center 98-0 table 228).
GRIB: Undefined parameter table (center 98-0 table 228).
GRIB: Undefined parameter table (center 98-0 table 228).
GRIB: Undefined parameter table (center 98-0 table 228).
GRIB: Problems with ReadGrib1Record called by ReadGrib2Record
Inside ReadGrib1Record
GRIB1 GDS: Expect PV = 255 != 33

ERROR 4: H14_2011010400.grib is a grib file, but no raster dataset was successfully identified.
gdalinfo failed - unable to open 'H14_2011010400.grib'.

我认为你的GRIB文件编码错误 ,tryu安装wgrib以获得更多信息。



文章来源: Can R read grib file(when it is not raster) and convert it to ASCII file?
标签: r gdal grib