1

下午好;

我目前正在使用此处.grib找到的.grib2文件格式。我想在 R 中分析这些数据,并通过使用我“应该”能够做到的rgdal包。当我运行时:

readGDAL("test.grib2")

我收到以下错误:

dec_jpeg2000: Unable to open JPEG2000 image within GRIB file.
Is the JPEG2000 driver available?test.grib2 has GDAL driver GRIB 
and has 751 rows and 1500 columns
Error in validityMethod(as(object, superClass)) : 
  Geographical CRS given to non-conformant data: 539.88 -90.12  90.12

这让我相信 JPEG200 驱动程序是我的问题,它没有出现在gdalDrivers()其中,我很好奇是否有办法手动安装此驱动程序。

在GDAL 站点上注意到JPEG2000 驱动程序依赖于libjasper,并已下载到源驱动程序文件。如何将这些驱动程序合并到我的 rgdal 包中以供使用?

干杯

4

1 回答 1

0

可以使用这些安装 wgrib2 的说明来rNOMADS处理此问题。这一起允许使用 GRIB 文件。

于 2015-09-15T18:22:54.967 回答