<div dir="ltr">Hi Anne,<div>It's typically not gsn_contour_shade per se. It usually has more to do with the size of the plot, the resolution of your grid, the gradients in your contour field, etc. You can try setting cnFillMode = "RasterFill" in the resource list passed into the plotting function to see if that speeds things up. </div><div>If you're still having trouble let ncl-talk know.</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 14, 2019 at 10:35 AM Anne <<a href="mailto:anne.seidenglanz@unive.it">anne.seidenglanz@unive.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>I would like to pick up an issue on scripts running slow that contain the gsn_contour_shade function (see conversation below from 2011). </div><div>My question is: has there been found any solution to this problem?? I am trying to plot a panel plot with 6 plots which each of them has the significance stippling  overlaid, but really takes forever..:/</div><div><br></div><div>I used </div><div><br></div><div>      opt@gsnShadeHigh = 4<br></div><div><br></div><div>and </div><div><br></div><div><div>         plot(0) = gsn_csm_contour_map(wks, var_diff_ensmean(0,:,:), res)</div><div>         plot0   = gsn_csm_contour(wks, prob_nov, res2)      </div><div>         plot0   = gsn_contour_shade(plot0, 10e-7, 1.96, opt)     </div><div>        overlay(plot(0),plot0)</div></div><div><br></div><div><br></div><div>Any ideas?:)</div><div>Thanks</div><div>Anne </div><div><br></div><div><br></div><div><br></div><div><p style="color:rgb(0,0,0);font-family:Times;font-size:medium">Hi Steve, <br></p><p style="color:rgb(0,0,0);font-family:Times;font-size:medium">I would like to know why it takes so long too! I see you are doing raster contours, which would have been the first thing I'd ask you to try (the default "area fill" filled contours can be slow). <br></p><p style="color:rgb(0,0,0);font-family:Times;font-size:medium">Can you poing me to the script and data on mirage? Feel free to send me a personal email on this. <br></p><p style="color:rgb(0,0,0);font-family:Times;font-size:medium">Thanks, <br></p><p style="color:rgb(0,0,0);font-family:Times;font-size:medium">--Mary <br></p><p style="color:rgb(0,0,0);font-family:Times;font-size:medium">On Apr 11, 2011, at 11:37 AM, Stephen Yeager wrote: <br></p><p style="color:rgb(0,0,0);font-family:Times;font-size:medium"><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> Hello: </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> I've attached an ncl script which can be run on mirage. It generates </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> a 16-panel plot. Once the computation is done (a minute, perhaps), it takes about 10-20 seconds to generate the final plot. </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> However, when I add shading onto the contour plots using either </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> ShadeLtContour() or gsn_contour_shade() </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> it takes more than 30 minutes to finish! I like the resulting page of plots, but would like to know why it takes so long to complete, and how I might speed it up. </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> Thanks, </em><br><em class="gmail-m_6339211710782354482gmail-quotelev1" style="color:rgb(153,0,153)">> Steve </em></p></div></div></div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>