4

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?

Kuba Wenta
  • 580
  • 1
  • 5
  • 25

1 Answers1

0

The solution was to install netcdfAll instead netcdf-java.

  "edu.ucar" % "netcdfAll" % "4.6.3"
Kuba Wenta
  • 580
  • 1
  • 5
  • 25