[gdal-dev] Complex Data in Terrasar images

el_inca pavkiz at mail.ru
Tue Mar 6 06:40:35 EST 2012


Hi,
When reading *.cos file with gdal i get negative data. Is it normal ? How to
explain it, is it a feature of gdal or of a terrasar image or another
reason?

Here is a code:

Struct Complex {
           Int16 real;
           Int16 imaginary;
           }
...
Complex * scanline=new Complex[XSize];
poRasterBand->RasterIO(Gf_Read,nXOff,nYOff,XSize,1,scanline,XSize,1,CInt16,0,0);


if i read *.cos file into UInt16 type all negative data will be translated
to zero:

UInt16 * scanline=new UInt16[XSize];
poRasterBand->RasterIO(Gf_Read,nXOff,nYOff,XSize,1,scanline,XSize,1,UInt16,0,0);

Gdal version: 1.8.0
Language: Visual C++

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Complex-Data-in-Terrasar-images-tp4550979p4550979.html
Sent from the GDAL - Dev mailing list archive at Nabble.com.


More information about the gdal-dev mailing list