Agnes
The NhlMalloc error is a bit obscure, but I believe it indicates that it simply ran out of memory to visualize your data.
Your arrays area already fairly large, and you have at least three of them that are 5000*5000*4 bytes in size. Do you have more?
You may simply have used up all the available memory on your machine, and if possible, you need to free some of the large, unneeded
variables in your NCL script. For example, if you have large arrays "xc" and "yc" that you don't need:
delete(xc)
delete(yc)
...
You might also try plotting just a subset of your data, to see if the issue is simply with plotting your full data. You will need
to make sure you subscript both your data and the lat2d/lon2d arrays the same way. You can start by plotting everything 5th
or 10th value. For example:
. . .
step = 5
res@sfXArray = lon2d(::step,::step)
res@sfYArray = lat2d(::step,::step)
. . .
plot = gsn_csm_contour_map(wks,data(::step,::step),res)
--Mary
On Jun 22, 2011, at 9:58 AM, Agnes Lim wrote:
> HI
>
> I have a GOES post-processed image in NC format.
> I was able to read the data but when I use gsn_csm_contour_map, I get
> the following errors
> =======================================================
> fatal:NhlMalloc Failed:[errno=12]
> fatal:["SphericalTransObj.c":663]:[errno=12]
> fatal:Unable to initialize layer-Can't Create
> fatal:ContourPlotInitialize: Error creating transformation object
> fatal:ContourPlotInitialize: error setting up transformation
> fatal:Unable to initialize layer-Can't Create
> fatal:Unable to access object with id:-4
> fatal:PID #-4 can't be found in NhlSetValues
> (0) spread_colors: invalid plot: defaulting
> fatal:PID #-4 can't be found in NhlSetValues
> warning:overlay: bad HLU id passed in, ignoring
> fatal:PID #-4 can't be found in NhlSetValues
> fatal:PID #-4 can't be found in NhlSetValues
> fatal:NhlGetValues:PID #-4 is invalid
> ===================================================
> printVarSummary of the variable to be plotted shows
> Variable: BT
> Type: float
> Total Size: 100000000 bytes
> 25000000 values
> Number of Dimensions: 2
> Dimensions and sizes: [yc | 5000] x [xc | 5000]
> Coordinates:
> Number Of Attributes: 7
> lon2d : <ARRAY of ,
> elements>
> lat2d : <ARRAY of 25000000 elements>
> time : 1211371200
> long_name : Temperature
> type : VISR
> coordinates : lon lat
> units : K
>
>
> Please advise on the problem.
>
> Thanks
> Agnes
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jun 22 23:43:18 2011
This archive was generated by hypermail 2.1.8 : Thu Jun 23 2011 - 13:23:47 MDT