<div dir="ltr"><div class="gmail_default"><span style="font-size:12.8000001907349px">Nana,</span></div><div class="gmail_default"><span style="font-size:12.8000001907349px"><br></span></div><div class="gmail_default"><span style="font-size:12.8000001907349px">Try change line:</span></div><div class="gmail_default"><span style="font-size:12.8000001907349px">  cru    = f-&gt;pre(iYYYY,:,:)</span><br></div><div class="gmail_default"><span style="font-size:12.8000001907349px">to:</span></div><div class="gmail_default"><span style="font-size:12.8000001907349px">  cru    = f-&gt;pre(iYYYY,</span>{lat|latS:latN},{lon|lonE:lonE})</div><div class="gmail_default"><br></div><div class="gmail_default">Which may solve your memory problem.</div><div class="gmail_default"><br></div><div class="gmail_default">Good luck.</div><div class="gmail_default"><br></div><div class="gmail_default">Wei</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><font face="tahoma, sans-serif">================================================</font><div><font face="tahoma, sans-serif">1850 Table Mesa Dr.</font></div><div><font face="tahoma, sans-serif">Boulder, CO 80307</font></div><div><font face="tahoma, sans-serif">Phone: 303-497-8924</font></div></div></div></div>
<br><div class="gmail_quote">On Sat, Apr 25, 2015 at 2:55 PM, Alessandra Giannini <span dir="ltr">&lt;<a href="mailto:alesall@iri.columbia.edu" target="_blank">alesall@iri.columbia.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello Nana,<br>
<br>
it looks like this could be generically a memory issue - your computer has a hard time managing all the data it is ingesting.<br>
<br>
As boring as this will sound, my suggestion is that you execute your script line by line, to see where it fails.<br>
By this I mean starting NCL and copying and pasting into the NCL environment line by line…<br>
<br>
warm regards, ale<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
Alessandra Giannini<br>
IRI for Climate and Society - The Earth Institute at Columbia University<br>
P.O. Box 1000, Palisades NY 10964-8000<br>
phone/fax: <a href="tel:%2B1%20845%20680-4473" value="+18456804473">+1 845 680-4473</a>/4864 - email: <a href="mailto:alesall@iri.columbia.edu">alesall@iri.columbia.edu</a><br>
<div><div class="h5"><br>
On Apr 25, 2015, at 1:41 PM, Nana kofi Appiah-badu &lt;<a href="mailto:justappia@gmail.com">justappia@gmail.com</a>&gt; wrote:<br>
<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt; I downloaded the eof script and using it to perform an eof analysis to obtain the first three eofs and their corresponding time series from the cru data from 1958 to 2008 during the MAM (MARCH, APRIL, MAY ) season. but this error message pops up after i start to run the script:<br>
&gt;<br>
&gt; fatal:NclMalloc Failed:[errno=12]<br>
&gt; Segmentation fault (core dumped)<br>
&gt;<br>
&gt; below is the full output when i run the script.<br>
&gt;<br>
&gt; Variable: f<br>
&gt; Type: file<br>
&gt; filename:    cru<br>
&gt; path:    <a href="http://cru.nc" target="_blank">cru.nc</a><br>
&gt;    file global attributes:<br>
&gt;       Conventions : CF-1.4<br>
&gt;       title : CRU TS3.21 Precipitation<br>
&gt;       institution : Data held at British Atmospheric Data Centre, RAL, UK.<br>
&gt;       source : Run ID = 1307101324<br>
&gt; Data generated by BADC from:<br>
&gt; pre.1307101049.dtb<br>
&gt;       history : Wed 10 Jul 2013 18:28:10 BST : User ianharris : Program makegridsauto.for called by update.for<br>
&gt;       references : Information on the data is available at <a href="http://badc.nerc.ac.uk/data/cru/" target="_blank">http://badc.nerc.ac.uk/data/cru/</a><br>
&gt;       comment : Data restrictions: for academic research use only.Contact BADC for details<br>
&gt;       contact : BADC &lt;<a href="mailto:badc@rl.ac.uk">badc@rl.ac.uk</a>&gt;<br>
&gt;    dimensions:<br>
&gt;       lon = 720<br>
&gt;       lat = 360<br>
&gt;       time = 1344  // unlimited<br>
&gt;    variables:<br>
&gt;       double lon ( lon )<br>
&gt;          long_name :    longitude<br>
&gt;          units :    degrees_east<br>
&gt;<br>
&gt;       double lat ( lat )<br>
&gt;          long_name :    latitude<br>
&gt;          units :    degrees_north<br>
&gt;<br>
&gt;       double time ( time )<br>
&gt;          long_name :    time<br>
&gt;          units :    days since 1900-1-1<br>
&gt;          calendar :    gregorian<br>
&gt;<br>
&gt;       double pre ( time, lat, lon )<br>
&gt;          long_name :    precipitation<br>
&gt;          units :    mm<br>
&gt;          correlation_decay_distance :     450<br>
&gt;          _FillValue :    9.969209968386869e+36<br>
&gt;          missing_value :    9.969209968386869e+36<br>
&gt;<br>
&gt;<br>
&gt; Variable: cru<br>
&gt; Type: double<br>
&gt; Total Size: 1269043200 bytes<br>
&gt;             158630400 values<br>
&gt; Number of Dimensions: 3<br>
&gt; Dimensions and sizes:    [time | 612] x [lat | 360] x [lon | 720]<br>
&gt; Coordinates:<br>
&gt;             time: [21199..39796]<br>
&gt;             lat: [-89.75..89.75]<br>
&gt;             lon: [-179.75..179.75]<br>
&gt; Number Of Attributes: 5<br>
&gt;   long_name :    precipitation<br>
&gt;   units :    mm<br>
&gt;   correlation_decay_distance :     450<br>
&gt;   _FillValue :    9.969209968386869e+36<br>
&gt;   missing_value :    9.969209968386869e+36<br>
&gt; fatal:NclMalloc Failed:[errno=12]<br>
&gt; Segmentation fault (core dumped<br>
&gt;<br>
&gt; i have attached the script and the error after starting to run.<br>
&gt;<br>
&gt; Thank you for your time  and assistance.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; Nana.<br>
</div></div>&gt; &lt;eof_1.ncl&gt;&lt;error message.odt&gt;_______________________________________________<br>
&gt; ncl-talk mailing list<br>
&gt; List instructions, subscriber options, unsubscribe:<br>
&gt; <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>