[gdal-dev] Complex Data in Terrasar images

2012-03-06 Thread el_inca
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]

[gdal-dev] How to read *.cos files

2012-02-15 Thread el_inca
Hi, Can you help with opening terra-sar images? Terra-sar data is complex data like : C=A+i*B. If i understand correctly, when we will read only 'A' part of data (for testing purposes) in output we an image without phase. So, when using RasterIO, i use as buff_type GDT_Int16. In output there i

[gdal-dev] Re: Saving 16 bit image

2011-07-26 Thread el_inca
Thank you for your answer. In gdal-translate.exe there is an option of -scale pixel range. How can i set this parameters from code (visual c++) ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6621525.html Sent from the GDAL - Dev mailing l

[gdal-dev] Re: Saving 16 bit image

2011-07-21 Thread el_inca
I just mean..Is it neсessary to do manipulations with scanline (byte array corresponding to 8 bit image) to save it with RasterIO to 16 bit depth ? -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Saving-16-bit-image-tp6606613p6606792.html Sent from the GDAL - Dev mailing

[gdal-dev] Saving 16 bit image

2011-07-21 Thread el_inca
Hi, Can anybody help me with saving TIFF images? I need to save 8 bit image to 16 bit image. Raster data is keeping in Byte array. When i save from 8 bit to 8 bit it works good. But when i save from 8 to 16 bit Gdal creates an image, that i can read after with this library, but not with another pro