NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

[netcdf-java] Help reading grib2 file.

Hi,
I have a grb2 file containing global Primary_wave_direction forecasts. I
would like to read the values it contains.

By the moment I was able to read the file and obtain a GridDataset using the
following code:
------------
(NetCDF:Version 4.0.16; Grib:Version 6.0.16)

final File file = new File("src/test/resources/multi_1.glo_30m.DIRPW.grb2");
final GridDataset gridDataSet = GridDataset.open(file.getAbsolutePath());
----------
the file can be downloaded from:
ftp://polar.ncep.noaa.gov/pub/waves/develop/multi_1.latest_run/multi_1.glo_30m.DIRPW.grb2
----------
Now I would like if someone can tell me which are the methods from
gridDataSet I should use in order to obtain the different forecast values of
the Primary_wave_direction for a given grid point.

Thanks,

Regards.

Esteban.