[gradsusr] COPYGB
Wesley Ebisuzaki - NOAA Federal
wesley.ebisuzaki at noaa.gov
Thu Mar 10 09:55:56 EST 2016
Alvin,
*| Is someone has an idea how can I get the same value as the |
Original GRID (with 4 decimal place value)?*
*The original file has a resolution of 0.1 m/s. The new file has*
*a resolution of 0.1 m/s.*
*| *
*min/max data -24.2939 34.5061 num bits 10 BDS_Ref -242.939
DecScale 1 BinScale 0*
*The original data is floating point values given by the formula*
* U = (i - 242.939) * 10e-1 where i = 0..(2**11 - 1)*
|
*min/max data -24.3 34.5 num bits 10 BDS_Ref -243 DecScale 1 BinScale 0*
*The new data is floating point values given by the formula*
* U = (i - 243) * 10e-1 where i = 0..(2**11 - 1)*
*You think that you you have more accurate values but not really. If you want*
*to change the resolution, you will have to alter the defaults which
arebuilt into copygb (change IDS/IBS/NBS using the namelist). As a
practical matter, don't let the number of bits (num bits) used to
store the integer be*
*> 24. The defaults built into copygb are pretty good. *
*Wesley*
On Wed, Mar 9, 2016 at 12:35 AM, Alvin Pura <alvingpura at gmail.com> wrote:
>
>
> *Dear all,I run copygb with the following option as shown below:*
>
>
>
> *grid='255 0 NX NY LAT0 LON0 128 LAT1 LON1 DX DY 0'
> copygb -g"$grid" -x inxxx.grb outxxx.grb*
>
>
>
>
> *However,upon checking (using wgrib -V option) I found out that the min/max data on the New GRID 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 Original GRID (with 4 decimal place value)?*
>
> * Original GRID*
>
> rec 137:6098988:date 2013110700 VGRD kpds5=34 kpds6=103 kpds7=13716 levels=(53,148) grid=255 13716 m above MSL anl:
> VGRD=v wind [m/s]
> timerange 1 P1 0 P2 0 TimeU 1 nx 181 ny 213 GDS grid 1 num_in_ave 0 missing 0
> center 201 subcenter 1 process 1 Table 2 scan: WE:SN winds(grid)
> Mercator: lat 2.351000 to 25.088000 by 12.000000 km nxny 38553
> long 114.990000 to 135.009000 by 12.000000 km, (181 x 213) scan 64 mode 136 Latin 14.000000 bdsgrid 1
> * min/max data -24.2939 34.5061 num bits 10 BDS_Ref -242.939* DecScale 1 BinScale 0
>
>
> * New GRID*
>
> rec 137:6073536:date 2013110700 VGRD kpds5=34 kpds6=103 kpds7=13716 levels=(53,148) grid=255 13716 m above MSL anl:
> VGRD=v wind [m/s]
> timerange 1 P1 0 P2 0 TimeU 1 nx 181 ny 213 GDS grid 0 num_in_ave 0 missing 0
> center 201 subcenter 1 process 1 Table 2 scan: WE:NS winds(N/S)
> latlon: lat 2.351000 to 25.088000 by 0.108000 nxny 38553
> long 114.990000 to 135.009000 by 0.108000, (181 x 213) scan 0 mode 128 bdsgrid 1
> *min/max data -24.3 34.5 num bits 10 BDS_Ref -243* DecScale 1 BinScale 0
>
> Thanks.
>
> *Alvin G. Pura*
> *Weather Specialist I*
> Numerical Modeling Section
> Research and Development and Training Division
> PAGASA - DOST
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160310/4077d36f/attachment.html
More information about the gradsusr
mailing list