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"
Thanks
Debasish
-----Original Message-----
From: ncl-talk-bounces_at_ucar.edu [mailto:ncl-talk-bounces_at_ucar.edu] On Behalf
Of jerry
Sent: Thursday, June 15, 2006 6:50 PM
To: ncl-talk_at_ucar.edu
Subject: memory allocate problem
hi
I read a daily data with 3 dimensions T1000(time , lat , lon),the time is
from 19480101 to 20060131.
The code is below
begin
f =
addfile("http://172.16.66.34/cgi-bin/nph-dods/data_online/........../NCEPRE-
Daily_T1000_d.nc" , "r")
var = f->T1000
var_new = short2flt(var)
end
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
$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
So i make the time range shorter :
begin
f =
addfile("http://172.16.66.34/cgi-bin/nph-dods/data_online/........../NCEPRE-
Daily_T1000_d.nc" , "r")
var = f->T1000(0:3650, : , :) ; the time only chose 10 years
var_new = short2flt(var)
end
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
RAM:2G
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
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