R可以读取grib文件(不是栅格文件时)并将其转换为ASCII文件吗? [英] Can R read grib file(when it is not raster) and convert it to ASCII file?

查看:364
本文介绍了R可以读取grib文件(不是栅格文件时)并将其转换为ASCII文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试读取此grib文件,但出现错误.有没有一种方法可以解决此问题

I am trying to read this grib file but I got an error.is there a way we can solve this problem

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

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

推荐答案

这不是R问题.

使用gdal,我有这个:

using gdal, I have this :

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文件编码错误,请尝试安装wgrib以获得更多信息.

I think that your grib file is wrongly encoded, tryu to install wgrib to get more info.

这篇关于R可以读取grib文件(不是栅格文件时)并将其转换为ASCII文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆