Search code examples
javascalanetcdfgrib

NetCDF: NoSuchFieldError: pdsHash when opening a file


I am trying to open grib2 file with NetcdfDataset.openDataset()

val path= getClass.getResource("/grib2/weather.grib2").getPath
val gribFile = NetcdfDataset.openDataset(path)

and I met with NoSuchFieldError: pdsHash. Does it mean that this file is invalid? If not then how to open it?


Solution

  • The solution was to install netcdfAll instead netcdf-java.

      "edu.ucar" % "netcdfAll" % "4.6.3"