Hi Tong,
A Malloc error usually means that your machine has run out of memory.
Looking at the file you are trying to plot, the array size is rather big
(81MB) for plotting.
There are no coordinate variables (latitudes/longitude arrays) within
the .hdf file. I assume you are creating those yourself, or have them
from somewhere else. I also converted to float from short using
short2flt, as I am guessing you did.
My best guess is that your machine is running out of memory when trying
to plot the large array. Can you subset the data somehow, seeing if you
can get a smaller region to plot? Alternatively you can try running this
on a machine with more memory.
If these suggestions do not help please let us know..
Best regards,
Adam
On 04/13/2010 03:01 PM, Tong Qi wrote:
> Hello NCL-Talk,
>
> I am trying to plot the data field "Ice_Surface_Temperature_NP" from
> this hdfeos file:
> ftp://ftp.hdfgroup.uiuc.edu/pub/outgoing/veer/MAP_DATA/files/NSIDC/MODIS/MOD29E1D/MOD29E1D.A2009340.005.2009341094922.hdf
>
> However, when I run my script, I receive:
>
> fatal:NclMalloc Failed:[errno=12]
> Segmentation fault
>
> When I try to use "plot=gsn_csm_contour_map(wks,data,res)" I find that
> the error is generated on that line. Any help is greatly appreciated.
>
> Thanks,
> Tong
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- __________________________________________________ Adam Phillips asphilli@ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 Climate and Global Dynamics Division fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Tue Apr 13 16:58:25 2010
This archive was generated by hypermail 2.1.8 : Wed Apr 14 2010 - 09:15:22 MDT