netcdfAll如何读取grib文件

How to read grib file by netcdfAll

我要从

"edu.ucar" % "netcdfAll" % "5.0.0-beta2"

"edu.ucar" % "netcdfAll" % "5.4.1"

我看到那个函数,我用它打开 .grib2 个文件

NetcdfDataset.openDataset(path)

已标记为已弃用。有什么新的打开方式?

好的,在挖掘之后我找到了它..根据https://github.com/Unidata/netcdf-java/wiki/Common-Client-Changes它被移动到NetcdfDatasets.openDataset(path)