Re: [Gdal-dev] 1-band TIFF FILE color ramp NEEDED

2009-04-12 Thread Roger André
Sorry about that. It has to do with the little progress indicator that runs when gdal processes a file. There are different ways of invoking it, and my mileage varies with each of them. I think it is based on what version of gdal you're using. Anyhow, 2 ways you can deal with this. I think

Re: [Gdal-dev] 1-band TIFF FILE color ramp NEEDED

2009-04-11 Thread alvarez00
Hi Frank, here is how I modify the vrt file: VRTDataset rasterXSize=1200 rasterYSize=1096 SRSGEOGCS[quot;NAD83quot;,DATUM[quot;North_American_Datum_1983quot;,SPHEROID[quot;GRS

Re: [Gdal-dev] 1-band TIFF FILE color ramp NEEDED

2009-04-10 Thread Frank Warmerdam
alvarez00 wrote: I'm trying to make a color ramp for a 1-band tiff file or a jpeg. I have a 1-band tiff file and I converted that tiff file into VRT. I was reading some of the posts and some suggest to modify the VRT file and add a ColorTable tag but that doesn't work. My objective is to show

Re: [Gdal-dev] 1-band TIFF FILE color ramp NEEDED

2009-04-10 Thread Roger André
Here's another way you can do it, a Python script that will create discreet color classes from a grayscale image. It uses a function named MakeColor which is currently set to work on Z values between 0 and 255. You can test it by converting your file into an 8-bit version (gdal_translate -scale