[ncl-talk] regd. memory allocation error

Ranjan Kumar Sahu ranzan998 at gmail.com
Mon Jul 13 16:58:40 MDT 2020


dear sir/ma'am,
I was trying to find a 2D correlation between 3d olr data and a 3D array(1D
array converted into 3D by taking the same no. of lat*lon grid) as shown in
ncl example https://www.ncl.ucar.edu/Applications/Scripts/corel_3.ncl .
when i tried to do this, the memory allocation exceeded the limits. I
couldn't overcome it even after trying.

ncl 0> fname="/home/ranjan/Desktop/project_004/proj_norm_order_new.ascii"
ncl 1> data=asciiread(fname,-1,"string")
ncl 2> folr=addfile("olr_india_3_10_filtered_pentad.nc","r")
ncl 3> olr=folr->olr
ncl 4> eoa = stringtofloat(str_get_field(data,5," "))
warning:stringtofloat: a bad value was passed; input strings must contain
numeric digits, replacing with missing value
ncl 5> ts1 = olr(:,19:60,10:70)
ncl 6> ntim=2265
ncl 7> ts2=onedtond(eoa,(/ntim,40,61/))
ncl 8>
ncl 9> maxlag = 3
ncl 10> ccr = esccr(ts1,ts2,maxlag)
fatal:esccr: Unable to allocate memory for output arrays
fatal:["Execute.c":8635]:Execute: Error occurred at or near line 11

kindly help me out.

Thank you


*Ranjan kumar Sahu*
Ocean & Atmospheric Sc
University of Hyderabad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200714/479d6446/attachment.html>


More information about the ncl-talk mailing list