little-endian and big-endian
Davide Sacchetti
davide.sacchetti at ARPAL.ORG
Tue Jul 12 10:51:29 EDT 2005
use "options" keyword on your ctl file ...
"options byteswapped" Indicates the binary data file is in reverse byte
order from the normal byte order of your machine
big_endian Indicates the data file contains 32-bit IEEE floats created
on a big endian platform (e.g., sun, sgi)
little_endian Indicates the data file contains 32-bit IEEE floats
created on a little endian platform (e.g., iX86, and dec)
(from on line manual)
you can also use grads to convert from litlle/big endian to the normal
byte order of your machine (setting gxout fwrite)
bye bye
Davide
On Tue, 2005-07-12 at 16:29 +0200, Sijikumar S wrote:
> hello all,
> I have created a binary data file with grads 32-bit little-endian. how
> can i convert this to big-endian format, since all other data are in
> big-endian. Is there any fortran code to read little-endian and write
> in big-endian.
> thanks
> siji
--
Sacchetti Davide
ARPAL UO3 Centro Meteo Idrologico Regione Liguria - Dir. Scientifica
P.za Vittoria 15 16121 Genova (I)
tel: +39 010 5761479
mail: davide.sacchetti at arpal.org web: www.meteoliguria.it
More information about the gradsusr
mailing list