*** 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
官方文檔鏈接
總結
以上是生活随笔為你收集整理的*** FATAL ERROR: too many grib files .. 1st=F:\data\预测数据 2nd=- ***的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Cannot find referenc
- 下一篇: 面试官,再也别问我的系统如何支持高并发了