[gdal-dev] Re: Byte swapping (esp for ENVI format output) & RSAT2 doc

Paul Mallas pmallas at rsmas.miami.edu
Fri Jun 6 12:09:45 EDT 2008


Thanks for the note - I went ahead and wrote a small c++ program to do 
this. 

Pretty easy to implement, but it seemed like something that would be in 
the gdal utilities.

Christopher Barker wrote:
>
>
>> Paul Mallas wrote:
>>> Does any gdal utility (like gdal_translate) have the capacity to 
>>> byte swap data, especially for the ENVI output format?
>
> I don't know if there is a way for GDAL to do it, but it would be a 
> pretty short scrip tin python with numpy -- load the rasterband into a 
> numpy array, byteswap it, then save it back.
>
> -Chris
>
>



More information about the gdal-dev mailing list