Re: hdf multy file plot

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Jun 24 2013 - 08:36:04 MDT

Hi Hesham,

Nice to hear from you!

There are a couple of things going on with this error message. First, some internal memory is being exhausted. You can see some information about this on our FAQ: need to bump up your workspace size. First, retrieve the default "workspace id", and then set the "wsMaximumSize" resource to a value larger than 100000000, the default value. To do this, add the following code right after you create a workstation with gsn_open_wks:

  setvalues NhlGetWorkspaceObjectId()
    "wsMaximumSize" : 300000000
  end setvalues

You can permanently bump up the workspace size by setting this resource in your ~/.hluresfile:
*wsMaximumSize : 300000000

You may also need to play with the 300000000 value. This is just a first guess.

Since you are drawing a contour plot from a somewhat large array, you might instead try switching to raster contouring by setting the resource:

    res@cnFillMode = "RasterFill"

As for the other error about irregular coordinate arrays, the error is saying that your sfYArray array (the one associated with latitude) is non-monotonic. For coordinate arrays, this is required.

>From the output you sent:

            YDim_mod08: [89.5..-89.5]
            XDim_mod08: [-179.5..179.5]

it looks like the latitudes go from 89.5 to -89.5, which is okay. You can determine if this array is monotonic with:


If it is non-monotonic, then could you provide us with the data file so we can take a look?


On Jun 20, 2013, at 2:22 PM, Hesham Afify wrote:

> Hi all
> First of all I wish to express my grate appreciation for the effort and big hand given to me and all my colleagues in SUNY Albany during the workshop held last month
> I had hdf files for monthly MODIS sat data and when I read them for a whole year (12 files), the dimensions became 2160 x 360 while I was expecting 12x180x360, and when I tried to plot them I had the following error:
> " warning:ScalarFieldSetValues: irregular coordinate array sfYArray non-monotonic: defaulting sfYArray
> fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size 32556688
> fatal:ContourPlotDraw: draw error
> warning:WorkstationDeactivate: workstation not active or not opened "
> script and output are attached
> best regards
> Hesham
> --
> Hesham A A Hassan | Meteorologist
> Egyptian Meteorological Authority
> Graduate student UAlbany, SUNY
> Office |ESS334, 1400 Washington Ave., Albany, NY, 12222
> Tel: 1 518 479 9828 |
> | Email:,
> <terminal_excution.txt><script_1.ncl>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Mon Jun 24 08:36:09 2013

This archive was generated by hypermail 2.1.8 : Mon Jun 24 2013 - 11:46:47 MDT