*** FATAL ERROR: too many grib files .. 1st=F:\data\预测数据 2nd=- ***
問題描述:
在使用wgrib2.exe 讀取grib2文件的過程中,報(bào)錯(cuò)
*** FATAL ERROR: too many grib files … 1st=F:\data\預(yù)測(cè)數(shù)據(jù) 2nd=- ***
問題產(chǎn)生原因:
由于路徑中日期作為文件夾名稱存在 “-”,這個(gè)符號(hào)使得wgrib2誤認(rèn)為輸入了兩個(gè)文件產(chǎn)生錯(cuò)誤
官方對(duì)于該錯(cuò)誤的解釋如下:
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.
譯文:
每個(gè)選項(xiàng)都需要固定數(shù)量的參數(shù)。如果參數(shù)太多或太少,就會(huì)得到這個(gè)錯(cuò)誤消息。在下面的例子中,-ij需要兩個(gè)參數(shù)。對(duì)于第一個(gè)-ij,參數(shù)是10和-ij。“11”不是以破折號(hào)開頭的,所以它被認(rèn)為是一個(gè)grib文件。因?yàn)橐呀?jīng)找到了一個(gè)grib文件,所以出現(xiàn)了錯(cuò)誤消息。
bash-4.1$ wgrib2 small.grb -ij 10 -ij 11 12
官方文檔鏈接
總結(jié)
以上是生活随笔為你收集整理的*** FATAL ERROR: too many grib files .. 1st=F:\data\预测数据 2nd=- ***的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Cannot find referenc
- 下一篇: 面试官,再也别问我的系统如何支持高并发了