<div dir="ltr">Does the fill value need to be defined? And since I'm redefining a variable does this require := rather than =?<div><br></div><div>Thanks again for the help!</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">-Zach Rieck<div><a href="mailto:zrr817@gmail.com" target="_blank">zrr817@gmail.com</a></div><div>(513)-502-5652</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019 at 4:06 PM Adam Phillips <<a href="mailto:asphilli@ucar.edu">asphilli@ucar.edu</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">Hi Zach,<div>Something like this should work:</div><div>; output1 and output2 are 1D arrays of the same length</div><div>output1 = where(output1.eq.0.and.output2.eq.0,output1@_FillValue,output1)</div><div><br></div><div>That will set all points in output1 to _FillValue where both output1 and output2 are 0. Those points will not get plotted.</div><div>(Note that this overwrites your output1 array, if you do not want that you'll want to copy output1 to say output1_save before doing the above.)</div><div><br></div><div>If you have further questions let ncl-talk know.</div><div>Adam </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 28, 2019 at 3:54 PM Zach Rieck via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</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">To whom it May Concern-<div><br></div><div>I had a general question about how to change a scatter plot I have created. The plot compares values from 2 model outputs relative to a 1:1 line for SLW, and since it is for a dry location, it has several 0,0 gridpoints (i.e. both models indicated no SLW was present). </div><div><br></div><div>At the request of the leader of the project, I've been tasked with removing those points from the plot. I was thinking about trying to use an if then statement to try to reassign my plotting variables, but I'm unsure.</div><div><br></div><div>Please advise. I framed this as a general question so I have not attached code or data, but if that would be helpful to solving this question please let me know.</div><div><br></div><div>Respectfully,</div><div><br clear="all"><div><div dir="ltr" class="gmail-m_6234240385675896873gmail-m_-3403687871486459753gmail_signature"><div dir="ltr">-Zach Rieck<div><a href="mailto:zrr817@gmail.com" target="_blank">zrr817@gmail.com</a></div><div>(513)-502-5652</div></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-m_6234240385675896873gmail_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>
</blockquote></div>