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.
Hi Sean: ucar.grib.* is deprecated, do not use. normally you just read grib like any CDM file. we dont support any public API for lower level access. John > Hi, > > I found an example in the code located at ucar.grib.grib1.Grib1GetData. > > However, I have noticed that some of the exceptions are not logging the > stack trace. For example, > > } catch (NotSupportedException notSupport) { > log.error("Grib1BinaryDataSection exception was caught"); > return null; > } > > It would be helpful to include the stacktrace. For example, > > } catch (NotSupportedException notSupport) { > log.error("Grib1BinaryDataSection exception was caught", notSupport); > return null; > } > > I hope this helps. > > Thanks, > Sean > > ---------- Forwarded message ---------- > From: sean <address@hidden> > Date: Mon, Mar 25, 2013 at 11:07 PM > Subject: Reading grib1 files > To: address@hidden > > > Hi, > > Is there sample code showing how to read grib files using NetCDF in Java? > > [By the way, I have created a Maven project and have already included the > NetCDF libraries.] > > Thanks, > Sean > > Ticket Details =================== Ticket ID: SXO-208102 Department: Support netCDF Java Priority: Normal Status: Open