r.in.bin with little-endian

Zsolt Felker felker at c160.pki.matav.hu
Thu Sep 21 04:23:08 EDT 2000



Michel Wurtz wrote:

> Felker Zsolt a écrit :
> >
> > Hi dear Grass users!
> >
> > I've grass5beta7 on linux and I'd like to convert 2 bytes binary raster
> > files to grass. The datas are signed and the byteorders are
> > little-endian for example: 0x52FE = -430 (decimal)
> > The question is r.in.bin supports this byteorder or not (there is no
> > manual), may be in the future release (grassbetax x>7 ?)? Or any idea
> > how can I convert these files?
>
> I planed to upgrade r.in.bin so it can manage quite every binary format,
> but had some timing trouble (I just moved and changed of job, but things
> are gradually going better ;-)... so maybe in a pair of week (I just have
> to convince my wife that the painting and wall-paper are OK and that there
> is no need to build another cupboard ;-)
>
> So stay on-line !

Thanks Michel, I've solved the problem (thank you Markus) with dd command
conv=swab option.
But if r.in.bin works on every bin format, it'll be welcome news!

Zsolt




More information about the grass-user mailing list