<div dir="ltr">I actually did try that, and it got rid of the constant field issue, but it looked a bit weird, so I wrote it off. I changed the contour interval this time and now and the values seem OK, so I guess that fixes it for now.<div><br></div><div>Thanks!<br><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b>-------</b></div>William LaForce IV<br>Meteorologist</div></div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 9, 2020 at 2:22 PM Jeff Duda <<a href="mailto:jeffduda319@gmail.com">jeffduda319@gmail.com</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">L.B.<div>I do not know the issue with using a negative number in the pow() function, but try using the assumed definition of a negative power as 1/term:</div><div><br></div><div>'d 0.1*(1 / pow(prate,0.54))'</div><div><br></div><div>Does that give you the expected behavior?</div><div><br></div><div>Jeff </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 9, 2020 at 11:50 AM L.B. <<a href="mailto:bcbass2989@gmail.com" target="_blank">bcbass2989@gmail.com</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">Hello,<div><br></div><div>I am having an issue with the pow() function using a negative exponent. It is displaying a constant field where it should be a variable field. I have attached the grib file as well as the ctl file and all relevant equations are below:</div><div><br></div><div>The grib file contains the precipitation rate. I am trying to create a field which uses the precip rate as follows:</div><div><br></div><div><i>'define prate = (pratesfc/25.4)*3600'   **Converting the precip rate field to in/hr</i></div><div><br></div><div>Plotting this yields a varying precip rate field in inches/hour.</div><div><br></div><div>Next, I want to apply the following equation to the prate field:</div><div><br></div><div><i>'d 0.1*pow(prate,-0.54)'</i></div><div><i><br></i></div><div>The issue is that it creates a constant field with a value of 0.0563103 when it should still be a varying field. Is this a bug with pow() function, or is something else going on here?</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b>-------</b></div>William LaForce IV<br>Meteorologist</div></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"><div><br></div>-- <br><div dir="ltr"><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 Division<br><font size="2"><span>

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



</div></div></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>