<div dir="ltr"><div>Alvin,<br><br></div><div><div><div class="gmail_extra"><pre><i>| Is someone has an idea how can I get the same value as the <br><b>| Original GRID</b> (with 4 decimal place value)?<br><br></i></pre><pre><i>The original file has a resolution of 0.1 m/s. The new file has<br></i></pre><pre><i>a resolution of 0.1 m/s.<br></i></pre><pre><i><br>| </i><i><b>min/max data -24.2939 34.5061 num bits 10 BDS_Ref -242.939</b> DecScale 1 BinScale 0<br><br></i></pre><pre><i>The original data is floating point values given by the formula<br><br></i></pre><pre><i> U = (i - 242.939) * 10e-1 where i = 0..(2**11 - 1)<br><br><br></i></pre><pre>| <i><b>min/max data -24.3 34.5 num bits 10 BDS_Ref -243</b> DecScale 1 BinScale 0<br><br><br></i></pre><pre><i>The new data is floating point values given by the formula<br><br></i></pre><pre><i> U = (i - 243) * 10e-1 where i = 0..(2**11 - 1)<br></i></pre><pre><i><br>You think that you you have more accurate values but not really. If you want<br></i></pre><pre><i>to change the resolution, you will have to alter the defaults which are<br>built into copygb (change IDS/IBS/NBS using the namelist). As a practical <br>matter, don't let the number of bits (num bits) used to store the integer be<br></i></pre><pre><i>> 24. The defaults built into copygb are pretty good. </i></pre><pre><i>Wesley<br></i></pre><pre><i><br></i></pre><div class="gmail_quote">On Wed, Mar 9, 2016 at 12:35 AM, Alvin Pura <span dir="ltr"><<a href="mailto:alvingpura@gmail.com" target="_blank">alvingpura@gmail.com</a>></span> wrote:<br><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:verdana,sans-serif"><pre><i>Dear all,<br><br>I run copygb with the following option as shown below:</i> <br><br><b><i>grid='255 0 NX NY LAT0 LON0 128 LAT1 LON1 DX DY 0'
copygb -g"$grid" -x inxxx.grb outxxx.grb<br><br></i></b><br><i>However,upon checking (using wgrib -V option) I found out that the min/max data <br>on the <b>New GRID</b> shows a rounded off numbers instead of having a four decimal value. Is someone has an idea how can I get the same value as the <br><b>Original GRID</b> (with 4 decimal place value)?<br><br></i></pre><pre><i><b> Original GRID</b></i><br></pre><pre>rec 137:6098988:date <a href="tel:2013110700" value="+12013110700" target="_blank">2013110700</a> VGRD kpds5=34 kpds6=103 kpds7=13716 levels=(53,148) grid=255 13716 m above MSL anl:<br> VGRD=v wind [m/s]<br> timerange 1 P1 0 P2 0 TimeU 1 nx 181 ny 213 GDS grid 1 num_in_ave 0 missing 0<br> center 201 subcenter 1 process 1 Table 2 scan: WE:SN winds(grid) <br> Mercator: lat 2.351000 to 25.088000 by 12.000000 km nxny 38553<br> long 114.990000 to 135.009000 by 12.000000 km, (181 x 213) scan 64 mode 136 Latin 14.000000 bdsgrid 1<br> <b> min/max data -24.2939 34.5061 num bits 10 BDS_Ref -242.939</b> DecScale 1 BinScale 0<br><br><br></pre><pre><b><i> New GRID</i></b><br></pre><pre>rec 137:6073536:date <a href="tel:2013110700" value="+12013110700" target="_blank">2013110700</a> VGRD kpds5=34 kpds6=103 kpds7=13716 levels=(53,148) grid=255 13716 m above MSL anl:<br> VGRD=v wind [m/s]<br> timerange 1 P1 0 P2 0 TimeU 1 nx 181 ny 213 GDS grid 0 num_in_ave 0 missing 0<br> center 201 subcenter 1 process 1 Table 2 scan: WE:NS winds(N/S) <br> latlon: lat 2.351000 to 25.088000 by 0.108000 nxny 38553<br> long 114.990000 to 135.009000 by 0.108000, (181 x 213) scan 0 mode 128 bdsgrid 1<br> <b>min/max data -24.3 34.5 num bits 10 BDS_Ref -243</b> DecScale 1 BinScale 0<br><br></pre><pre>Thanks.<br></pre></div><div><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="arial black, sans-serif" color="#3d85c6"><b style="background-color:rgb(255,255,255)">Alvin G. Pura</b></font><div><i style="background-color:rgb(255,255,255)"><font face="garamond, serif" size="2" color="#6fa8dc">Weather Specialist I</font></i></div><div><font face="garamond, serif" size="2" color="#6fa8dc">Numerical Modeling Section </font></div><div><font face="garamond, serif" size="2" color="#6fa8dc">Research and Development and Training Division </font></div><div><font face="garamond, serif" size="2" color="#6fa8dc">PAGASA - DOST</font></div><div><br></div></div></div></div></div></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" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br></div></div></div></div>