Skip to main content
11 events
when toggle format what by license comment
Jun 8, 2015 at 12:29 vote accept Bárbara Duarte
Apr 23, 2015 at 18:32 answer added radouxju timeline score: 4
Apr 23, 2015 at 16:02 comment added Aaron @BárbaraDuarte Please consider adding your findings as an answer so we can consider this question resolved.
Apr 23, 2015 at 15:53 answer added xunilk timeline score: 6
Apr 23, 2015 at 15:04 comment added Bárbara Duarte No, I am just trying with any image. But I get it now. I use gdal_translate with -scale and the image is now with 8 bit and with the colors. Thank you. I will find a way to get it in python script.
Apr 23, 2015 at 14:52 comment added user30184 Much easier than to explain is to show an example with real data. Do you have some test data to be used as input?
Apr 23, 2015 at 14:44 comment added Bárbara Duarte I try what you said and the black image as the same information about the original image. But it appears in black. How do I correct that?
Apr 22, 2015 at 16:03 comment added user30184 For sure it is possible but I am not the one who knows how. I would first study the histogram of the original and the all black image you have with gdalinfo -stats. 32 bit images often have data only on the lower end of the scale which make them look like totally black if they are viewed without stretching the histogram. Then you may need to find an equivalent to -scale option of gdal_translate gdal.org/gdal_translate.html for Python.
Apr 22, 2015 at 15:57 comment added Bárbara Duarte I need to solve it inside an application (a script) so I prefer with Python. It is possible?
Apr 22, 2015 at 15:56 comment added user30184 Do you definitely want to do it with Python and not with a gdal_translate command?
Apr 22, 2015 at 15:49 history asked Bárbara Duarte CC BY-SA 3.0