Re: Workspace reallocation would exceed maximum size 33554432

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 17 May 2007 11:16:08 -0600 (MDT)

On Wed, 16 May 2007 cluo_at_uci.edu wrote:

> Hi,
>
> I am trying to draw the contour with HDF data (540x1080), but the error is
> always:
> "Workspace reallocation would exceed maximum size 33554432"
> Even I added below statements in the script.
> -----------
> setvalues NhlGetWorkspaceObjectId()
> "wsMaximumSize": 33554432
> end setvalues
> -----------
>
> Buts it still problem with same error message.
> Appreciate for any help and information!
>
> Chao

Hi Chao,

First (basic) question: are you adding the above code before you
generate the contour plot?

Second: try slowly bumping up the value to see if the message goes
away. I would start with a value of 40000000 and work from there.

If this doesn't work, you can try other things. For example, you can
see if adding:

    res_at_cnFillMode = "RasterFill"

helps. This generates a raster fill plot instead of an "area" fill plot.
Here's a description from the URL:

   http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnFillMode

     ContourPlot generates a representation of the data by individually
     assigning colors to the elements of a two-dimensional array of
     rectangular cells (a raster array) superimposed on an area
     bounding the data grid. With raster mode, only solid fill is
     possible, and therefore resources related to fill pattern
     specification have no effect. The color of each cell is determined
     based on the fill color assigned to the data value at the cell's
     location. If cnRasterSmoothingOn is set True, the data value for
     each raster cell is interpolated from the values of data grid
     cells in the neighborhood. Otherwise, each raster cell is assigned
     the color associated with the grid cell within which the greatest
     proportion of its area lies. Cells of a raster fill plot cannot be
     transparent. If a fill index of Transparent is set for any cell of
     a raster fill plot, the Background color will be used instead.

--Mary
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu May 17 2007 - 11:16:08 MDT

This archive was generated by hypermail 2.2.0 : Fri May 18 2007 - 09:11:09 MDT