<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Melissa,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default" style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">We need to know more about the problem in order to determine why so much memory is being requested.</div><br class="gmail-Apple-interchange-newline">As Barry asked, did you get an error message? In particular, did you get an error message like this:</div><div class="gmail_default" style="font-size:small"><br></div> fatal:ContourPlotDraw: Workspace reallocation would exceed maximum size<div><br><div class="gmail_default" style="font-size:small">and then add some code that looks like this to deal with it?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"> setvalues NhlGetWorkspaceObjectId() </div><div class="gmail_default"> "wsMaximumSize" : xxxxxx</div><div class="gmail_default"> end setvalues</div><div class="gmail_default"><br></div><div class="gmail_default">If so, how big did you set wsMaximumSize to?</div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Also, how big is the variable that is being passed to gsn_csm_contour_map? You can do a "printVarSummary" on it and then post that back to ncl-talk. How many contour levels are you generating for each plot? This can cause more memory to be required.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If these are large arrays that you'r contouring, then using raster fill might help speed things up:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"> res@cnFillMode = "RasterFill"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">These are just a few of the suggestions. You may need to review the variables that you are reading and/or calculating to see how big they are, and whether you really need to do this kind of calculation across the whole domain. </div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As a final step, it would help if we could look at your script, and even better if we could try running it on casper.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 13, 2018 at 11:00 AM, MELISSA KAZEMI RAD <span dir="ltr"><<a href="mailto:mk1369@scarletmail.rutgers.edu" target="_blank">mk1369@scarletmail.rutgers.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Hi,</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I am trying to create panel plots, (2 contour and 4 xy plots) using "gsn_csm_contour_map" and "gsn_csm_xy" from wrf outputs for different times. However, the job runs out of memory for one of the contour plots, only for certain times. (The resulting figure only lacks one of the contour plots!)</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I am running ncl scripts on NCAR's Casper, and am using a total of 1500 GB of memory! I was wondering if there's a problem with gsn_csm_contour_map, and if not, if there are ways to make the script more efficient. The contour plots and xy plots are drawn separately using gsn_panel.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I tried plotting the contour plot separately for those certain times, but it still runs out of memory. I have encountered the same problem for some other variables before.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I really appreciate some help with this issue.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_default" style="font-family:georgia,serif">Melissa<br></div><br><span class="gmail_default" style="font-family:georgia,serif"></span>-- <br><div dir="ltr" class="m_-4459980040988439277gmail_signature"><div dir="ltr"><font face="georgia, serif"><i>Melissa Kazemi Rad</i></font><div><font face="georgia, serif"><i>Atmospheric Sciences Department</i></font></div><div><font face="georgia, serif"><i>Rutgers University</i></font></div></div></div></font></span></div></div></div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>