RE: [ncl-talk] memory allocate problem

From: Debasish Pai Mazumder <debasish_at_nyahnyahspammersnyahnyah>
Date: Fri, 16 Jun 2006 11:00:41 -0800

Hi Jerry,

Most common reason for occurring Malloc errors is the shell limits

How to set the value to the maximum are given below,
On the command line type the following:

limit datasize unlimited

(This is for C shell)

If you are using Korn Shell the command would be

 "ulimit -Sd unlimited"



-----Original Message-----
From: [] On Behalf
Of jerry
Sent: Thursday, June 15, 2006 6:50 PM
Subject: memory allocate problem


I read a daily data with 3 dimensions T1000(time , lat , lon),the time is
from 19480101 to 20060131.

The code is below


     f =
addfile("" , "r")
     var = f->T1000
     var_new = short2flt(var)


When the code runs to var_new = short2flt(var),it get the error message:

fatal:Nclmalloc Failed:[ error=12 ]:Cannot allocate memory
fatal:Could not coerce values for operation
fatal:Execute:Error occurred at or near line 1340 in file

So i make the time range shorter :


     f =
addfile("" , "r")
     var = f->T1000(0:3650, : , :) ; the time only chose 10 years
     var_new = short2flt(var)


And the scripts will work complete.

But i need to read the whole data , how can i do ?
Thank you

NCL version:4.2.0.a33
OS:Red Hat Linux ES 3.0

ncl-talk mailing list
Received on Fri Jun 16 2006 - 13:00:41 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 16 2006 - 13:51:09 MDT