<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->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->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"><<a href="mailto:alesall@iri.columbia.edu" target="_blank">alesall@iri.columbia.edu</a>></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 <<a href="mailto:justappia@gmail.com">justappia@gmail.com</a>> wrote:<br>
<br>
> Hello everyone,<br>
><br>
> 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>
><br>
> fatal:NclMalloc Failed:[errno=12]<br>
> Segmentation fault (core dumped)<br>
><br>
> below is the full output when i run the script.<br>
><br>
> Variable: f<br>
> Type: file<br>
> filename: cru<br>
> path: <a href="http://cru.nc" target="_blank">cru.nc</a><br>
> file global attributes:<br>
> Conventions : CF-1.4<br>
> title : CRU TS3.21 Precipitation<br>
> institution : Data held at British Atmospheric Data Centre, RAL, UK.<br>
> source : Run ID = 1307101324<br>
> Data generated by BADC from:<br>
> pre.1307101049.dtb<br>
> history : Wed 10 Jul 2013 18:28:10 BST : User ianharris : Program makegridsauto.for called by update.for<br>
> 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>
> comment : Data restrictions: for academic research use only.Contact BADC for details<br>
> contact : BADC <<a href="mailto:badc@rl.ac.uk">badc@rl.ac.uk</a>><br>
> dimensions:<br>
> lon = 720<br>
> lat = 360<br>
> time = 1344 // unlimited<br>
> variables:<br>
> double lon ( lon )<br>
> long_name : longitude<br>
> units : degrees_east<br>
><br>
> double lat ( lat )<br>
> long_name : latitude<br>
> units : degrees_north<br>
><br>
> double time ( time )<br>
> long_name : time<br>
> units : days since 1900-1-1<br>
> calendar : gregorian<br>
><br>
> double pre ( time, lat, lon )<br>
> long_name : precipitation<br>
> units : mm<br>
> correlation_decay_distance : 450<br>
> _FillValue : 9.969209968386869e+36<br>
> missing_value : 9.969209968386869e+36<br>
><br>
><br>
> Variable: cru<br>
> Type: double<br>
> Total Size: 1269043200 bytes<br>
> 158630400 values<br>
> Number of Dimensions: 3<br>
> Dimensions and sizes: [time | 612] x [lat | 360] x [lon | 720]<br>
> Coordinates:<br>
> time: [21199..39796]<br>
> lat: [-89.75..89.75]<br>
> lon: [-179.75..179.75]<br>
> Number Of Attributes: 5<br>
> long_name : precipitation<br>
> units : mm<br>
> correlation_decay_distance : 450<br>
> _FillValue : 9.969209968386869e+36<br>
> missing_value : 9.969209968386869e+36<br>
> fatal:NclMalloc Failed:[errno=12]<br>
> Segmentation fault (core dumped<br>
><br>
> i have attached the script and the error after starting to run.<br>
><br>
> Thank you for your time and assistance.<br>
><br>
> Regards,<br>
><br>
> Nana.<br>
</div></div>> <eof_1.ncl><error message.odt>_______________________________________________<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>
<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>