<div dir="ltr"><div>Anytime you use a script written by another person and you run into problems, it's generally easiest and best to ask the script author since they know the script better than anyone else.<br><br></div>
However, from what you attached, I can see that you should probably use the math_fmt() function instead to format the string of the value. Use it to reformat min_val before the second draw string command for each of the high and low.<br>
<br>Jeff Duda<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Nov 7, 2013 at 3:46 PM, Perry, Aaron @ LSC <span dir="ltr"><<a href="mailto:Aaron.Perry@lsc.vsc.edu" target="_blank">Aaron.Perry@lsc.vsc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Thanks for the advice Stephen. I'm currently using
<a href="http://gradsaddict.blogspot.com/2013/05/tutorial-draw-sea-level-pressure-map.html" target="_blank">
mfhilo</a> to plot MSLP contours on top of my temp shaded contour. I just tried using the 'set dignum' option and it did not work. I still have MSLP values that have decimals, ex 1025.67.
<br>
<br>
Is there something that I have to adjust/turn off within the script itself? I've attached the script to this email.<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font size="3"><font face="Arial"><font face="Tahoma"><font>Onward and Upward,<br>
<br>
</font>Aaron Perry<br>
</font><font size="3"><font size="3"><font face="Tahoma">Boston, MA<br>
Mobile: 617-780-4312</font><br>
</font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> <a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a> [<a href="mailto:gradsusr-bounces@gradsusr.org" target="_blank">gradsusr-bounces@gradsusr.org</a>] on behalf of Stephen McMillan [<a href="mailto:smcmillan@planalytics.com" target="_blank">smcmillan@planalytics.com</a>]<br>
<b>Sent:</b> Thursday, November 07, 2013 8:13 AM<br>
<b>To:</b> GrADS Users Forum<br>
<b>Subject:</b> Re: [gradsusr] Rounding Numbers With Decimals<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Aaron,
<div><br>
</div>
<div>If you're wanting to change the numbers displayed on screen (as with 'set gxout grid'), then use 'set dignum ...', e.g., 'set dignum 0' to drop the decimals before displaying the variable.</div>
<div><br>
</div>
<div>If you're wanting to change the numbers using 'set gxout print' then use 'set prnopts..', e.g., 'set prnopts %0.0f'' will drop the decimals when you display the variable.</div>
<div><br>
</div>
<div>Hope this helps...</div>
<div>Stephen Mc</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Nov 6, 2013 at 11:08 PM, Perry, Aaron @ LSC <span dir="ltr">
<<a href="mailto:Aaron.Perry@lsc.vsc.edu" target="_blank">Aaron.Perry@lsc.vsc.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Good Evening Everyone,<br>
<br>
I'm using OpenGrADS and I want to change MSLP values from say 1018.60mb to just 1018mb; same thing for temperatures. Is there a way that I can do this? I know that GrADS has a bunch of math functions but, I'm not sure which one to use and how to tell it to
reduce ANY displayed values with decimals in them.<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px">
<div style="font-family:Tahoma;font-size:13px"><font size="3"><font face="Arial"><font face="Tahoma"><font>Onward and Upward,<br>
<br>
</font>Aaron Perry<br>
</font><font size="3"><font size="3"><font face="Tahoma">Boston, MA<br>
Mobile: <a href="tel:617-780-4312" value="+16177804312" target="_blank">617-780-4312</a></font><br>
</font></font></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
_______________________________________________<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" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<pre>***************************************************
The information contained in this e-mail message is intended only for the use of the recipient(s) named above and may contain information that is privileged, confidential, and/or proprietary.
If you are not the intended recipient, you may not review, copy or distribute this message. If you have received this communication in error, please notify the sender immediately by e-mail, and delete the original message.
***************************************************
</pre>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
</div>