Re: PyNIO cache settings

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Wed, 27 Aug 2008 11:24:11 -0600

Hi Jesper,

Currently the GRIB cache size is set separately for GRIB 1 and GRIB 2
files as a define
in
NclGRIB.c and NclGRIB2.c. In both cases you would need to look for
this line:

# define NCL_GRIB_CACHE_SIZE 150

Note that these files are found for now in the NCL source directory.
I am planning to
move things around such that this file would instead be part of an
NIO library directory.
But for now if you have the NCL sources it would be located in
$NCARG/ni/src/ncl

After you change it you would need to recompile NCL and reinstall it
prior to rebuilding
PyNIO.

Perhaps we can make this into a settable option.
  -dave

On Aug 27, 2008, at 9:15 AM, Jesper Larsen wrote:

> Hi PyNIO people,
>
> Some time ago David Brown wrote on the mailing list that PyNIO caches
> the 150 last accessed grib records when reading a grib file (see this
> thread http://www.pyngl.ucar.edu/User_forum/Archives/2007/0051.html).
> At the time it was not really a problem for me that this was not
> configurable.
>
> Now however I am trying to deploy an application on a memory
> constrained (due to economics) server and was wondering where I can
> change the number of cached grib records in the source version of
> PyNIO (or better if it has become possible to configure in the binary
> version)?
>
> Regards,
> Jesper
>
> _______________________________________________
> pyngl-talk mailing list
> pyngl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk

_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Wed Aug 27 2008 - 11:24:11 MDT

This archive was generated by hypermail 2.2.0 : Mon Sep 01 2008 - 06:41:22 MDT