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.
On Tue, 15 Jun 2010, Robert B. Schmunk wrote:
Robb, GribGridServiceProvider is not referenced in the public API for NJ4.*. What's your recommendation on the best way to access it?
Robert,We are still working on the JavaDocs for 4.2 and this will be included in the public API for NJ4.2.
so use: GribGridServiceProvider.setIndexAlwaysInCache( true ); This method is: static public void setIndexAlwaysInCache(boolean b) { alwaysInCache = b; } So there should be no problem accessing it. RObb...
rbs On Jun 15, 2010, at 16:03, Robb Kambic wrote:-------- Original Message -------- Subject: GBX files and cache Date: Thu, 10 Jun 2010 22:54:44 -0400 From: Robert B. Schmunk <address@hidden> To: John Caron <address@hidden> John, On the webpage at http://www.unidata.ucar.edu/software/netcdf-java/reference/Caching.html there is a statement that In 4.0, the cache policy for GRIB indexes is set seperately from generic DiskCache, in order to give you seperate control: GribServiceProvider.setIndexAlwaysInCache( true); // always use the cache for grib indexRobert, GribServiceProvider.setIndexAlwaysInCache( true) did not work because GribServiceProvider is deprecated, you should be using: GribGridServiceProvider() so use GribGridServiceProvider.setIndexAlwaysInCache( true ); In the CDM, all classes in iosp/grib have been deprecated except GribGridServiceProvider, GribBinaryIndexer, and Grib2Netcdf. The deprecated grib classes can be found in the iosp/grid directory. In TDS 4.2 the deprecated classes will be removed. I will fix the documentation on the web and in the repository. Robb...I have tried using this in my Panoply app, and found that this does not seem to work at all. The GBX files continue to be written in the same directory as the original GRIB file. Is there a bug in NJ4, or am I missing something in how this is supposed to work? I have tried using this with and without applying DiskCache.setCachePolicy and DiskCache.setRootDirectory. rbs -- Robert B. Schmunk, address@hidden NASA Goddard Institute for Space Studies, 2880 Broadway, New York, NY 10025=============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================-- Robert B. Schmunk, address@hidden NASA Goddard Institute for Space Studies, 2880 Broadway, New York, NY 10025
=============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================