guidocioni at gmail.com
Tue Jul 11 02:39:56 MDT 2017
You are running out of memory; see here https://www.ncl.ucar.edu/Document/Language/error_messages.shtml#NclMalloc <https://www.ncl.ucar.edu/Document/Language/error_messages.shtml#NclMalloc>.
I guess the problem arises from this line
pre = onedtond(precip,(/mtime,mlat,mlon/))
You are trying to create an array which is 384x384x384, pretty big if you're not using a machine with large memory. Are you sure this numbers are correct? Usually the time dimension is slightly smaller...
Possible solutions are:
move to a machine with more memory
split the array in different parts
> On 11. Jul 2017, at 10:29, yohanan sweet <marsilas23 at gmail.com> wrote:
> I try to convert txt file to NetCDF but I got an error in my code.
> fatal:NclMalloc Failed:[errno=12]
> Segmentation fault
> please help me
> Thank you
> <convert to netcdf.txt>_______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ncl-talk