[Thread Prev][Thread Next][Index]

Re: **ERROR: stack overflow: grid stack



Hi Daniel,

In Ferret V5 the grids created by opening a netCDF data set are always
static. There is no way to delete them and, yes, they do accumulate and can
ultimately choke the program as you describe.

It is interesting that you bring this point up just now, because I am in the
final stages of correcting the problem. In the code that I am working on
netCDF grids are dynamic. They automatically vanish when no longer in use.
(I cannot say at this time if these changes will be part of V5.1 or part of
V5.2. The code changes are fairly deep, so I don't want to release them
until they are adequately tested.)

In the meantime, I have two workarounds to suggest:

  1. If your data sets share between them a number of axes and grids -- for
     example, an ensemble of model outputs on the same spatial domain --
     then as long as the netCDF coordinate variables (a.k.a. "axes") have
     identical names and definitions in each file, Ferret will share a
     single definition among many data sets.
  2. If this is not the case, then you will have no choice but periodically
     to end and restart your Ferret session.

Good question. Hang in there -- the "fix" is in the pipeline.

    - steve

=====================

Daniel Mueller wrote:

> Hi ferret users
>
> I am running in trouble while precessing a large number of netcdf files
> with ferret V500beta1.1.
> The Problem is that ferret seems to create a new set of grids for every
> file which is being opened, even if other previously opened files habe
> been canceled using "cancel data 1".
> I even tried opening a file, closing it and then opening the exact same
> file again which produced another identical set of grids.
> Is there a way to prevent this, since (afaik) there is no such thing as
> a "cancel grid" command. Or is there a posibility to tell ferret to use
> a specific already existing grid for every variable in a file being
> opened?
> Is there no other way at all to get rid of all those (identical sets of)
> grids than exit ferret and restart it?
>
> Any help would be appreciated
>
> Daniel

--
Steve Hankin
NOAA/PMEL, 7600 Sand Point Way NE, Seattle, WA 98115-0070
ph. (206) 526-6080 -- FAX (206) 526-6744




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement