binary - Trying to read a ieee file created by wgrid with fortran. I get weird entries -


I am trying to read a binary ieee file created by wgrib. I have a bunch of GRIB files from the ECMWF Center, and I am converting them into binary IEEE. I am trying to read it with Fortune, but there is no way that I am able to get great value for the right values ​​(number of grid lines (NLON) and column (NLAT). Using the line to create an IEEE file:

  'wgrib C: \ gribs \ IGD01211200012112001 -d 6 -ieee -big_endian IGD01211200012112001.bin  

And these are the fortran commands

  open (12, file = 'IGD01211200012112001.bin', form = 'binary', position) I have also tried  
  open (12, file ========================================================== < 'IGD01211200012112001.bin', Access = 'Stream')  

But nothing changed by using any correction open (12, file = 'IGD01211200012112001.bin', form = 'unformatted' , Position = 'old') but if well left on the memories and right of values. Some cushion uses

I also tried to play with the options - little_endian or - Both big_endian Nothing changes any solution? I tried to save it as a bin, but rather than flag-bin - no more in the wrib website. Some are called for wgrib2 here, but it does not help much thanks a.

The file is not according to the document being written, what are you expecting. For output bin or ieeee you will receive data from the following formats:

  Binary and IEEE, no header grid 1) (Binary Name Value) Grid Value (Binary Boat Value) ... (Binary Boat Value) NX * ny Values ​​(Grid 2) (Binary Names Value) (Binary Names Value) ... (Binary Names Value) NX Headers (Grid 1) (binary integer) with nx * na * ny value etc.  

or

  Binary and IEEE NX * ny * sizeof (boat) (grid 2) (binary integer) NX * ny * sizeof (boats) * NX * ny * size values ​​(binary number) (Binary float value) ... (binary float value) nx * ny value (binary integer) nx * ny * size (float)  

trying to read the dimension The length is the first grid, but it only works when you use -text instead of the binary or IEEE format Ikalp specify.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -