This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Esteban, Their might of been some confusion about your question, I was thinking that you meant levels for some reason. I looked in the grib grib2StdQuanties.xml table under Ocean Products, there are two different parameters for swell1 and swell2. So you would have to extract them both separately. There is a file called IndexFormat.txt in the package home that explains the index in detail. The Java Grib is being refactored so some of the text indexing routines will be deprecated. There is a ShowGribIndex routine that gives the same type of output. Robb... <category id="Waves" number="0"> <quantity id="Wave_spectra_1" number="0" unit="" description="Wave spectra 1" /> <quantity id="Wave_spectra_2" number="1" unit="" description="Wave spectra 2" /> <quantity id="Wave_spectra_3" number="2" unit="" description="Wave spectra 3" /> <quantity id="Significant_height_of_combined_wind_waves_and_swell" number="3" unit="m" description="Significant height of combined wind waves and swell" /> <quantity id="Direction_of_wind_waves" number="4" unit="degrees" description="Direction of wind waves" /> <quantity id="Significant_height_of_wind_waves" number="5" unit="m" description="Significant height of wind waves" /> <quantity id="Mean_period_of_wind_waves" number="6" unit="s" description="Mean period of wind waves" /> <quantity id="Direction_of_swell_waves" number="7" unit="degrees" description="Direction of swell waves" /> <quantity id="Significant_height_of_swell_waves" number="8" unit="m" description="Significant height of swell waves" /> <quantity id="Mean_period_of_swell_waves" number="9" unit="s" description="Mean period of swell waves" /> <quantity id="Primary_wave_direction" number="10" unit="degrees" description="Primary wave direction" /> <quantity id="Primary_wave_mean_period" number="11" unit="s" description="Primary wave mean period" /> <quantity id="Secondary_wave_direction" number="12" unit="degrees" description="Secondary wave direction" /> <quantity id="Secondary_wave_mean_period" number="13" unit="s" description="Secondary wave mean period" /> <quantity id="Wave_Steepness" number="192" unit="" description="Wave Steepness" /> Ticket Details =================== Ticket ID: NTS-432886 Department: Support netCDF Decoders Priority: Normal Status: Open