<div dir="ltr">You will need to add a format line in your code such as this:<div><br></div><div><div> 'd temp'</div><div> value = subwrd(result,4)</div><div> print_value = math_format("%2.0f",value)</div></div><div><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><b>-------</b></div><b>William (L.B.) LaForce<br></b>Meteorologist<div><a href="http://www.tornadoinsanity.com" target="_blank">www.tornadoinsanity.com</a></div></div></div></div>
<br><div class="gmail_quote">On Sun, Jan 3, 2016 at 3:16 AM, Christopher Gilroy <span dir="ltr"><<a href="mailto:chris.gilroy@gmail.com" target="_blank">chris.gilroy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:12.8px">Is there anyway to plot a specific value from a lat/lon?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">set lat 41</div><div style="font-size:12.8px">set lon -75</div><div style="font-size:12.8px">d tmp2m</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Returns a value if done at the command-line but doesn't seem to do anything when done with:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">'set gxout grid'<br></div><div style="font-size:12.8px"><div>'set lat 41'</div><div>'set lon -75'</div></div><div style="font-size:12.8px">'d tmp2m'</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">UPDATE: While I wish there was a way to do it with the above, I got it with doing this:</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div style="font-size:12.8px">'d (actualcmc - lterpclim)'</div><div style="font-size:12.8px">*'set gxout grid'</div><div style="font-size:12.8px">lonk=-75.7233</div><div style="font-size:12.8px">latk=41.3383</div><div style="font-size:12.8px">'set lat 'latk</div><div style="font-size:12.8px">'set lon 'lonk</div><div style="font-size:12.8px">'d (actualcmc - lterpclim)'</div><div style="font-size:12.8px">say result</div><div style="font-size:12.8px">tempkavp = subwrd(result,4)</div><div style="font-size:12.8px">tempavp = substr(tempkavp,1,4)</div><div style="font-size:12.8px">'q w2xy 'lonk' 'latk</div><div style="font-size:12.8px">say result</div><div style="font-size:12.8px">wx=subwrd(result,3);wy=subwrd(result,6)</div><div style="font-size:12.8px">'set font 15'</div><div style="font-size:12.8px">'set string 1 tl 0 0'</div><div style="font-size:12.8px">'set strsiz 0.08'</div><div style="font-size:12.8px">'draw string 'wx' 'wy' 'tempavp</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><span style="font-size:12.8px">Now, I know some of that isn't needed but what I'm curious of now... how can I get the tempavp to always be 1 digit after the decimal? So for example -0.1 or 1.2? The above code does -0.1 and 1.25 which makes sense of course but if this is the way it needs to be done (instead of using gxoutgrid and being able to use dignum) I have no idea how I can do it...</span><br></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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div>