Conversion between little_endian and big_endian grib files

Kees van Vliet kees at AEOLIS.NL
Fri Oct 19 11:22:20 EDT 2007


Hi,

I had this problem with GRIB data a few years ago. I got a small  
program to perform a byteswap and this worked very good.
attached is the program and a makefile to compile it with GCC.
Good luck,

Kees van Vliet

On Oct 19, 2007, at 4:40 PM, Ioannis A. Vamvakas wrote:

> Dear all,
>
> Has anybody confronted in the past the so-called NUXI problem? That  
> is,
> working in a little_endian machine to generate big_endian GRIB files?
>
> I'd appreciate any help on how you dealt with the problem!
>
> Thanks,
>
> --
> Ioannis A. Vamvakas
> Hellenic Center for Marine Research
> Institute of Oceanography
> 46.7 Km. Athens-Sounio Ave.
> GR-193 13,ANAVYSSOS,Greece
> Tel.+30-22910-7-6399, Fax: +30-22910-7-6323
> Cell Phone: +30-697-580-1696
>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20071019/1bf50013/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: byteswap.mk
Type: application/octet-stream
Size: 649 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20071019/1bf50013/attachment.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20071019/1bf50013/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: byteswap.c
Type: application/octet-stream
Size: 4241 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20071019/1bf50013/attachment-0001.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20071019/1bf50013/attachment-0002.html 


More information about the gradsusr mailing list