Hi Abhinav,
This is a fundamental question about how to interpret the octets of  
GRIB 2 file. I would strongly suggest you that you employ a low-level  
GRIB2 reading
library to perform this basic task for you, so that you can  
concentrate on higher-level issues.
You can get the NCEP GRIB 2 reading code at
http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/
There are both C and Fortran versions.
Another option is the ECMWF GRIB API that Oliver Fuhrer suggested:
http://www.ecmwf.int/products/data/software/grib_api.html
I am not familiar with developing in a .NET environment so I do not  
know what you would need to do to build either of these packages. I  
suspect that the NCEP g2clib code would be easier to start with.  It  
is used by the wgrib2 utility, which I would recommend that you  
become familiar with both as an example of a GRIB2 reader with  
accessible code, and also as a development tool for checking whether  
your code produces compatible results when fed the same input GRIB2  
file.
Even if you decide to create low-level code yourself, you could  
answer questions like the one below by studying the source code of  
these packages.
Hope this helps.
   -dave
On Feb 2, 2009, at 2:22 AM, abhinav gosavi wrote:
> Hi All,
>
> I am developing a .NET reader for GRIB 2 file.
> I am not able to generate actual lenght from byte/octets.
> I have retrieved  0 0 0 0 0 3 100 38 as bytes from lenght section. 
> ( 8 bytes allocated to represent length of each section )
> The actual size is that 222246 byte.
> How should i convert  0 0 0 0 0 3 100 38 to 222246 byte format???
>
> Please help me whoever work on GRIB reader in C,C++,java etc.
>
> Thanks & Regards,
> Abhinav Gosavi.
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 02 2009 - 11:46:32 MST
This archive was generated by hypermail 2.2.0 : Thu Feb 05 2009 - 17:21:37 MST