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.

To learn about what's going on, see About the Archive Site.

[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.
  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdf-java archives: