<div dir="ltr"><div>Math rule: log10(0) = -inf</div><div><br></div><div>If I were you I would not attempt to fill in undefined data points with zeros. Those areas (with zero rain) will end up with a reflectivity value of negative infinity, which is pretty useless when plotting. In practice, those areas will be represented as "no data", which is equivalent to "undefined" in GrADS. Just leave it as undefined so GrADS won't even plot values. It will simplify things.</div><div><br></div><div>Jeff Duda<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 27, 2020 at 11:00 AM Perry, Aaron <<a href="mailto:axp09171@alumni.northernvermont.edu">axp09171@alumni.northernvermont.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">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Good Afternoon All,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am trying to use a formula to convert some data in GrADS v2.2.1.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b>Excel Formula:</b></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
=10*LOG10(200*RainfallRate^1.6)<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<b>GrADS Formula (Broken down step-by-step for troubleshooting):</b></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
'define pratemmhr = (PRATEsfc.1*3600.0)' *converting mm/sec to mm/hour
<div>'define step1 = pow(pratemmhr,1.6)'</div>
<div>'define step2 = (200.0*step1)'</div>
<div>'define step3 = log10(const(step2,0,-u))'</div>
<div>'define step4 = (10.0*step3)'</div>
'define prate2dbz = step4'<br>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am receiving the following error in my Linux terminal:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<i>Warning from LOG10:  Data has 182085 values <= zero</i></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<i>These were set to the undefined value</i><br>
</div>
<div id="gmail-m_8114945996150287081Signature">
<div>

<div id="gmail-m_8114945996150287081divtagdefaultwrapper" dir="ltr" style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt"><br>
</span></font></font></div>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt;color:rgb(0,0,0)">What's going wrong
 here?</span></font></font></div>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt;color:rgb(0,0,0)"><br>
</span></font></font></div>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt;color:rgb(200,38,19)">*Note, in Step
 3, I have attempted to convert all undefined values to zeroes while log10() is called upon.</span></font></font></div>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt"><br>
</span></font></font></div>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt;color:rgb(0,0,0)">Best,</span></font></font></div>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt"><br>
</span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:11pt"><b><span style="font-size:14pt">Aaron
 Perry</span></b></span></font></font></div>
<div style="color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font style="font-size:13px" size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:11pt"><span style="font-size:14pt"></span></span></font><font face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt">Meteorologist<br>
</span><span style="font-size:12pt"></span></font><font style="font-size:13px" size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt">Class of '16</span></font><font style="font-size:13px" size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt"><br>
</span></font><font style="font-size:13px" size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt">Northern Vermont University-Lyndon</span></font></font></div>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt"><span style="font-size:10pt">(formerly </span><span style="font-size:10pt">Lyndon
 State College)</span></span></font><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt"><br>
<span style="font-size:12pt"></span><span style="font-size:12pt">Boston, Mass.</span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" color="#006FC9"><span style="font-size:12pt"><span style="font-size:12pt">Twitter:
</span><a href="https://twitter.com/AaronPerryWx" target="_blank"><span style="font-size:12pt">@AaronPerryWx</span></a></span></font><font size="2"><span style="font-size:11pt"><span style="font-size:12pt"><a href="https://twitter.com/arnpry" id="gmail-m_8114945996150287081LPNoLP" target="_blank"></a><a href="https://twitter.com/AaronPerryWx" target="_blank"></a></span></span></font></font></div>
<span style="font-size:12pt"></span>
<div style="font-size:13px;color:rgb(0,0,0);font-family:Tahoma"><font face="Calibri,Arial,Helvetica,sans-serif"><font size="2" face="Calibri,Arial,Helvetica,sans-serif" color="#006FC9"><span style="font-size:12pt">Email: </span></font><a href="http://Aaron.Perry@lyndonstate.edu/" id="gmail-m_8114945996150287081LPNoLP" target="_blank"><font size="2" face="Calibri,Arial,Helvetica,sans-serif"><span style="font-size:12pt">Aaron.Perry@lyndonstate.edu</span></font></a></font></div>
</div>
</div>
</div>
</div>
</div>

_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><font size="2"><span>Jeff Duda, Research Scientist</span></font></div><div dir="ltr"><font size="2"><span></span></font>University of Colorado Boulder</div><div dir="ltr"><font size="2"><span></span></font>Cooperative Institute for Research in Environmental Sciences</div><div dir="ltr">NOAA/OAR/ESRL/Global Systems Laboratory<br><font size="2"><span>

<span>Boulder, CO<br></span></span></font>



</div></div></div></div></div></div></div></div></div></div>