Re: [gdal-dev] decimal truncation when gdal_translate/gdalwarp

2015-07-24 Thread Ramiro Marco Figuera
Trent, Thanks a lot for the quick answer. I am using the img files so, I guess I will have to apply the offset correction. When using gdal_translate I already use "gdal_translate -ot Float32 -unscale in_16bit.lbl out_32bit.tif". I think the problem might be when I use gdal_translate -of XYZ i

Re: [gdal-dev] decimal truncation when gdal_translate/gdalwarp

2015-07-23 Thread Hare, Trent
Ramiro, I believe all 16bit LOLA DEMs have a scale in the header of 0.5 (they do release 32bit files also). Check to make sure the scale parameter exists using gdalinfo. To apply this value during conversion you have be explicit and specify "-ot Float32" AND "-unscale". So something like this. >

[gdal-dev] decimal truncation when gdal_translate/gdalwarp

2015-07-23 Thread Ramiro Marco Figuera
Hi all, I'm creating polar gnomonic DEMs using the LOLA DEMs as input files in gdal. My end product is an ascii file with X Y Z values. The original LOLA DEM is data type integer16 and I'm trying to transform it to a float32. I use -ot Float32 in gdal_translate and -wt Float32 in gdalwarp to