<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Quick suggestion. <div class=""><br class=""></div><div class="">Seems like everything is within time loops. That would suggest you don’t need to read in all of the values at once. </div><div class=""><br class=""></div><div class="">At the top of each time loop read in the msl for that time. That may make it a little slower but will reduce your memory usage massively. </div><div class="">e.g. </div><div class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""> do gg =0,ntime-1</div></div></div></div></blockquote><span class="Apple-tab-span" style="white-space:pre"> </span> z =l->msl(gg,::-1,:)<blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""> do j =26,nlat-7</div></div></div></div></blockquote></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Also nested looping through lats and lons is pretty slow in NCL and typically not actually needed. If you can make it array based it’ll be significantly quicker. </div><div class=""><br class=""></div><div class="">Drop some print() or printVarSummary() statements in there so you can tell how the code is progressing and where the issue is. It could be the data read in as I’ve suggested above. It could be the loops that are taking forever. It could simply by a workstation size problem that arises on plotting. Without some kind of rudimentary debugging info it’s hard to say. </div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Alan</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">##############################<br class="">Alan Brammer,<div class="">Post-Doc Researcher</div><div class=""><br class=""></div><div class="">Department of Atmospheric and Environmental Sciences,<br class="">University at Albany, State University of New York, Albany, NY, 12222<div class=""><a href="mailto:abrammer@albany.edu" class="">abrammer@albany.edu</a><br class="">##############################</div></div></div></span></div></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 11 Sep 2017, at 10:30, Guido Cioni <<a href="mailto:guidocioni@gmail.com" class="">guidocioni@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;"><div class=""><div dir="ltr" class=""><div class=""><div class=""> l =addfile("/home/aida/Desktop/Newfolder/<a href="http://dec10-14.nc/" class="">dec10-14.nc</a>","r")</div><div class=""> z =l->msl(:,::-1,:)</div></div></div></div></blockquote></div></blockquote></div><br class=""></div></body></html>