<div dir="ltr">Hi Laura,<div>You do not need to use gsn_coordinates to handle missing values in panel (or single) plots. If your plot call is hanging, there's two possibilities that stand out above others:</div><div>1) You have very tight gradients in your data, whether due to chosen contour levels, a high data resolution, or spatially highly variable data. If this is the case, try setting cnFillMode = "RasterFill" (and  cnRasterSmoothingOn = True if you want smoothed fields). You can also try smoothing your data (using smth9_Wrap for example), and changing your contour levels. Perhaps most importantly, check that your _FIllValue attribute is set correctly. </div><div>2) Your data has NaN's in it. Check for this by using isnan_ieee. </div><div><br></div><div>If you continue to have issues let ncl-talk know..</div><div>Adam</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 3, 2018 at 9:00 AM Laura Fowler <<a href="mailto:laura@ucar.edu">laura@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello:</div><div><br></div><div>I wrote a ncl script to make a panel plot (/3,2)/). Initially, none of the individual plots (plot(0), plot(1),...) contains missing data. Now, when I plot two of the individual plots (plot(0), plot(1),...) with data that contains missing values, then the same script hangs forever, or so it seems.</div><div><br></div><div>After reading the documentation, it looks like I may need to use gsn_coordinates to handle missing values in a panel plot. So I added the following lines below each call so that I have:</div><div><br></div><div>




<span></span>





<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">pres = True</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);background-color:rgb(255,255,255)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">pres@gsnCoordsAttach = True</span></p>


 </div>




<span></span>





<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@gsnLeftString<span class="m_2138668317799781590gmail-Apple-converted-space">  </span>= left_strs(0)</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@gsnRightString = right_strs(0)</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@gsnLeftStringParallelPosF = -0.09</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">plot(0) = gsn_csm_contour_map(wks,lwd_a,res)</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">gsn_coordinates(wks,plot(0),lwd_a,pres)</span></p>
<p class="m_2138668317799781590gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147);min-height:17px"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@gsnLeftString<span class="m_2138668317799781590gmail-Apple-converted-space">  </span>= left_strs(1)</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@gsnRightString = right_strs(1)</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@gsnLeftStringParallelPosF = -0.09</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">plot(1) = gsn_csm_contour_map(wks,lwj_a,res)</span></p>
<p class="m_2138668317799781590gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-weight:normal;font-stretch:normal;font-size:14px;line-height:normal;font-family:Courier;color:rgb(1,25,147)"><span class="m_2138668317799781590gmail-s1" style="font-variant-ligatures:no-common-ligatures">gsn_coordinates(wks,plot(1),lwj_a,pres)</span></p>


.<div>.</div><div>.</div><div><br></div><div>But the script still hangs? Is there anything else that I need to do?</div><div><br></div><div>Thanks,</div><div>Laura</div><div><br clear="all"><div><br></div>-- <br><div class="m_2138668317799781590gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Laura D. Fowler                                                                                       </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">Mesoscale and Microscale Meteorology Division (MMM)         </font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">National Center for Atmospheric Research<br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">P.O. Box 3000, Boulder CO 80307-3000</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">e-mail: <a href="mailto:laura@ucar.edu" target="_blank">laura@ucar.edu</a></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">phone: 303-497-1628</font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)"><br></font></div><div><font face="arial, helvetica, sans-serif" color="#0000ff" style="background-color:rgb(255,255,255)">!-------------------------------------------------------------------------------------------------------------</font><br></div></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" data-smartmail="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>