Re: Increase Workspace Allocation Limit?

From: Dennis Shea (shea AT XXXXXX)
Date: Tue Dec 14 2004 - 10:19:40 MST

  • Next message: ar2235@columbia.edu: "new with NCL"

    The default size is 16777216. There are two ways to
    create larger wk space.

    [1] explicitly set the wkstation size in the script.
        After opening the wk station:

        setvalues NhlGetWorkspaceObjectId()
          "wsMaximumSize": 50000000
        end setvalues

    [2] IMHO, the better approach: NCL lloks for a .hluresfile
        in the home directory of the machine u r using. I would
        set it here. A sample .hluresfile follows.
        All setting in a .hluresfile become the defaults
        for your plots.
        
        
    ! comments for ".res" files are preceded by a "!"
    ! remember quotations are not used in .res files

    ! White background/black foreground
    *wkForegroundColor : (/0.,0.,0./)
    *wkBackgroundColor : (/1.,1.,1./)

    ! Font stuff
    ! *appClass*Font : helvetica
    *Font : helvetica

    ! Function Codes [Default is a colon ]
    *TextFuncCode : ~
    *txFuncCode : ~

    ! Set size of x11 window
    *wkWidth : 700
    *wkHeight : 700

    ! Increase default wkspace for graphics !
    ! default is 16777216
    *wsMaximumSize : 33554432
        
    >Delivered-To: shea AT ucar.edu
    >Delivered-To: ncl-talk AT ucar.edu
    >Date: Tue, 14 Dec 2004 10:09:13 -0700
    >From: George Bieberbach <gbieber AT ucar.edu>
    >User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913
    >X-Accept-Language: en-us, en
    >MIME-Version: 1.0
    >To: ncl-talk AT ucar.edu
    >Subject: Increase Workspace Allocation Limit?
    >X-BeenThere: ncl-talk AT ucar.edu
    >X-Mailman-Version: 2.1.1
    >List-Id: NCAR Command Language User Group <ncl-talk.ucar.edu>
    >List-Unsubscribe: <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>,
    <mailto:ncl-talk-request AT ucar.edu?subject=unsubscribe>
    >List-Post: <mailto:ncl-talk AT ucar.edu>
    >List-Help: <mailto:ncl-talk-request AT ucar.edu?subject=help>
    >List-Subscribe: <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>,
    <mailto:ncl-talk-request AT ucar.edu?subject=subscribe>
    >
    >Hi,
    > I'm trying to create some color contour plots using data from a LES
    >model, but occasionally encounter the following error:
    >
    >fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size
    >32556688
    >fatal:ContourPlotDraw: draw error
    >fatal:ContourPlotDraw: draw error
    >fatal:PlotManagerDraw: error in plot draw
    >fatal:_NhlPlotManagerDraw: Draw error
    >
    >Is there a way to increase this size limit versus decreasing the size of
    >my plotted domain??
    >
    >Much Thanks,
    >
    >George Bieberbach
    >

    _______________________________________________
    ncl-talk mailing list
    ncl-talk AT ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Tue Dec 14 2004 - 10:39:41 MST