<div dir="ltr"><div>Dear K P Harish,</div><div><br></div><div>It depends on your plot method or whether you mean that you want the plotted RESULT to be to the nearest integer.  For example:</div><div><br></div><div>If plotting using 'set gxout grid' then...</div>'set dignum 0' prior to plotting the variable<div><br></div><div>If plotting using 'set gxout contour' and you want the contour labels be to the nearest integer...</div><div>'set clab %.0f' (actually, no digits after decimal is the default action) prior to the plot</div><div><br></div><div>If plotting using 'set gxout print'...</div><div>'set gxout print'</div><div>'set prnopts %0.0f' (for example, but see GrADS documentation index for other examples)</div><div>'d [your variable]</div><div><br></div><div>Hope this helps.</div><div>Stephen</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 17, 2019 at 12:07 AM KP Harish Kumar <<a href="mailto:kphk@hotmail.com">kphk@hotmail.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">
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Dear all</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I want to round of a variable to its nearest integer in a control file before plotting it. Please do help<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
For ex:</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline">ICAHTl12</span> is varaible in the following ctl file</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>dset ^T+06_1800<br>
</span>
<div>index ^T+06_1800.idx<br>
</div>
<div>undef 9.999E+20<br>
</div>
<div>title T+06_1800<br>
</div>
<div>* produced by g2ctl v0.1.8<br>
</div>
<div>* command line options: -0 T+06_1800<br>
</div>
<div>* griddef=1:41:(288 x 145):grid_template=0:winds(N/S): lat-lon grid:(288 x 145) units 1e-06 input WE:SN output WE:SN res 48 lat -90.000000 to 90.000000 by 1.250000 lon 0.000000 to 358.750000 by 1.250000 #points=41760:winds(N/S)<br>
</div>
<div><br>
</div>
<div>dtype grib2<br>
</div>
<div>ydef 145 linear -90.000000 1.25<br>
</div>
<div>xdef 288 linear 0.000000 1.250000<br>
</div>
<div>tdef 1 linear 18Z30sep2019 1mo<br>
</div>
<div>zdef 1 linear 1 1<br>
</div>
<div>vars 3<br>
</div>
<div>CBHEl10   0,10,0   0,6,25 ** entire atmosphere Horizontal Extent of Cumulonimbus (CB) [%]<br>
</div>
<div>ICAHTl11   0,11,0   0,3,3 ** cumulonimbus base ICAO Standard Atmosphere Reference Height [m]<br>
</div>
<div>ICAHTl12   0,12,0   0,3,3 ** cumulonimbus top ICAO Standard Atmosphere Reference Height [m]<br>
</div>
<div>ENDVARS<br>
</div>
<span></span><br>
</div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
I am converting <span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline">ICAHTl12 from m to ft</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline">now I want to round off it to its nearest integer before plotting it. I dont want the decimal part</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline">Please do help</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline">
<div style="margin:0px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
<span style="margin:0px;font-size:11pt;font-family:Arial,Helvetica,sans-serif">With best regards</span><span style="margin:0px;font-size:medium;font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</span></div>
<span style="margin:0px;font-size:11pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)"></span><span style="margin:0px;font-size:12pt;font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline"></span>
<div style="margin:0px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
<span style="margin:0px;font-size:11pt"></span><span style="margin:0px;font-size:medium;font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"></span><b><span style="margin:0px;font-size:medium;font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</span><span style="margin:0px;font-size:12pt;font-family:Arial,Helvetica,sans-serif"></span></b></div>
<span style="margin:0px;font-size:11pt;font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255)"></span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline"></span>
<div style="margin:0px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
<span style="margin:0px;font-size:12pt;font-family:Arial,Helvetica,sans-serif"></span><span style="margin:0px;font-size:11pt;font-family:Arial,Helvetica,sans-serif">K P Harish Kumar</span></div>
<div style="margin:0px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
<span style="margin:0px;font-size:11pt;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">General Manager (Aviation Meteorology)</span><br>
</div>
<div style="margin:0px;font-family:"Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif,serif,EmojiFont;background-color:rgb(255,255,255)">
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-size:12pt;font-family:Arial,Helvetica,sans-serif"><span style="margin:0px;font-size:11pt;color:rgb(0,111,201)">Software Lab and Technical Support Center</span><br>
</span></div>
<span style="margin:0px;font-size:11pt;color:rgb(0,111,201)"></span>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">Sheorey Digital Systems Pvt. Ltd.</span></div>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">Anjaneya Techno Park, 1st Floor</span><br>
</div>
<span style="margin:0px;font-size:11pt;color:rgb(0,111,201)"></span>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-size:medium"><span style="margin:0px;font-size:11pt;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">147, HAL Airport Road, </span><span style="margin:0px;font-size:11pt;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">Kodihalli</span></span></div>
<span style="margin:0px;font-size:11pt;color:rgb(0,111,201)"></span>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">Bengaluru 560 008,</span><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">India</span></div>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)"><br>
</span></div>
<span style="margin:0px;font-size:11pt;color:rgb(0,111,201)"></span>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">Tele:      +91 80 67188383</span></div>
<span style="margin:0px;font-size:11pt;color:rgb(0,111,201)"></span>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">Mobile:  +91 9047354390</span></div>
<span style="margin:0px;font-size:11pt;color:rgb(0,111,201)"></span>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">Fax:       +91 80 25036222</span></div>
<span style="margin:0px;font-size:11pt;color:rgb(0,111,201)"></span>
<div style="margin:0px;font-size:11pt"><span style="margin:0px;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">Website:<span> </span></span><span style="margin:0px;font-size:medium;font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><a href="http://www.sds.co.in/" rel="noopener noreferrer" style="margin:0px" target="_blank"><span style="margin:0px;font-size:11pt;font-family:Arial,Helvetica,sans-serif;color:rgb(0,111,201)">www.sds.co.in</span></a></span></div>
</div>
<br>
</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline"><br>
</span></div>
<div style="font-family:Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="font-family:Arial,Helvetica,sans-serif;background-color:rgb(255,255,255);display:inline"><br>
</span></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>
<pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">******************************<wbr>*********************</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">The information contained in this e-mail message </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">is intended only for the use of the recipient(s) </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">named above and may contain information that is </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">privileged, confidential, and/or proprietary. </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">If you are not the intended recipient, you may not</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">review, copy or distribute this message. If you have</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">received this communication in error, please notify </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">the sender immediately by e-mail, and delete the original message.</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">******************************<wbr>*********************</pre>