*** FATAL ERROR: too many grib files .. 1st=F:\data\预测数据 2nd=- ***

问题描述:
在使用wgrib2.exe 读取grib2文件的过程中,报错
*** FATAL ERROR: too many grib files … 1st=F:\data\预测数据 2nd=- ***
问题产生原因:
由于路径中日期作为文件夹名称存在 “-”,这个符号使得wgrib2误认为输入了两个文件产生错误
官方对于该错误的解释如下:
Every option requires a fixed number of arguments. If you have too many or too few arguments, you can get this error message. In the following example, -ij, requires two arguments. For the first -ij, the arguments are 10 and -ij. The “11” doesn’t start with a dash, so it is assumed to be a grib file. Since there was already a grib file found, error message.
译文:
每个选项都需要固定数量的参数。如果参数太多或太少,就会得到这个错误消息。在下面的例子中,-ij需要两个参数。对于第一个-ij,参数是10和-ij。“11”不是以破折号开头的,所以它被认为是一个grib文件。因为已经找到了一个grib文件,所以出现了错误消息。
bash-4.1$ wgrib2 small.grb -ij 10 -ij 11 12

官方文档链接

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 7
    评论
评论 7
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值