Re: fatal:NclMalloc Failed:[errno=12] ... assertion "value !=NULL"

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri, 10 Jul 2009 08:28:39 -0600 (MDT)

Hi Andrew,

First, and maybe you know this, it is not necessary to use (:,:) to access
a whole array. You can just use:

    x = f->tmp

Second, what type is tmp and what are its dimension sizes? It's possible
that you are hitting up against a memory limit.

--Mary

On Thu, 9 Jul 2009, Andrew Tredennick wrote:

> Hello all,
>
> I am trying to write a netCDF file to an ascii file with the code below:
>
> f=addfile("C:\Shoshone_Climate_Study\MC1_800m\SNF_MC1_800m_RAWDATA
> \Historical_Climate\tmp.nc","r")
>
> x=f->tmp(:,:)
> asciiwrite("c:\Shoshone_Climate_Study\mc1domain_historical_tmp",x)
>
> In the netCDF file, tmp attributes are as follows: tmp (grid, month). This
> same exact code has worked for other (even larger) netCDF files; and it works
> if I do 'x=f->tmp(1:2,1:2)' to get 4 data points. However, when trying to get
> all data points via ':,:' I am getting the following error message followed
> by a termination of my code:
>
> fatal:NclMalloc Failed:[errno=12]
> assertion "value !=NULL" failed: file "putget.c", line 3009
> Aborted (core dumped)
>
> It seems other people have received a similar error message, but with
> 'Segment Fault', which I am not getting here. Any help would be much
> appreciated. Thanks in advance.
>
> Cheers,
>
> Andrew
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jul 10 2009 - 08:28:39 MDT

This archive was generated by hypermail 2.2.0 : Mon Jul 13 2009 - 20:56:19 MDT