Subject: | Latitude Increment (LiInc) problem with German's Weather Service (DWD) GRIBs |
From: | frank.l.cox [...] gmail.com |
Jose Manuel Fernandez Jaramillo emailed:
Hi Frank,
First thank you for your perl module for reading grib files, It is helping me to
clean some dirty scripts to get the data.
My problem is that I am trying to read some files from the German's Weather
Service (DWD) and when they write the resolution they have 0.063, and It should
be 0.0625. Your PERL module uses the 0.063 and then as I have a 241x417 grid,
there is an important shift in the coordinates. According with your script I am
able to get only a 239x413 grid. And in a first hacking I found that the
temporal file that your script creates has all the elements that are supposed in
order to fill the complete grid.
Reading the documentation I found a solution forcing the increment by
$w->LaInc(0.0625), But as the same time you say not to use in production code.
Is there any alternative that you have or planning to have that I can use?
may be you can read the number of cells from wgrib and compare the consistency
of the increment value.
thank you for your attention, Jose Manuel
P.D.
this is the verbose output for one record in my Grib file:
rec 226:48076650:date 2010121700 T kpds5=11 kpds6=105 kpds7=2 levels=(0,2)
grid=255 2 m above gnd 78hr fcst: bitmap: 0 undef
T=temperature [K]
timerange 0 P1 78 P2 0 TimeU 1 nx 417 ny 241 GDS grid 0 num_in_ave 0 missing
0
center 78 subcenter 255 process 135 Table 2 scan: WE:NS winds(N/S)
latlon: lat 62.500000 to 47.500000 by 0.063000 nxny 100497
long -12.500000 to 13.500000 by 0.063000, (417 x 241) scan 0 mode 128
bdsgrid 1
min/max data 253.937 283.613 num bits 16 BDS_Ref 253.937 DecScale 0
BinScale -11