[gdal-dev] gdalenhance -config file how you do linear interpolation of the colors?

Chaitanya kumar CH chaitanya.ch at gmail.com
Sat Feb 11 04:57:14 EST 2012


Just pair the min and max values of the source raster to the min and max of
the target raster.

On Fri, Feb 10, 2012 at 10:50 PM, Nikolaos Hatzopoulos <nhatzop at gmail.com>wrote:

> How you define the min max from this documentation:
> http://www.gdal.org/gdal_vrttut.html
>
> --Nikos
>
>
> On Thu, Feb 9, 2012 at 10:59 PM, Chaitanya kumar CH <
> chaitanya.ch at gmail.com> wrote:
>
>> Nikolaos,
>>
>> The gdalenhance utility is not really recommended. I don't know the
>> config file format.
>>
>> GDAL's VRT driver[1] supports a look-up-table that works with linear
>> interpolation. In it, you specify pairs of corresponding values in source
>> and destination rasters. The intermediate source values are interpolated
>> linearly.
>>
>> [1]: http://www.gdal.org/gdal_vrttut.html
>>
>> On Fri, Feb 10, 2012 at 6:31 AM, Nikolaos Hatzopoulos <nhatzop at gmail.com>wrote:
>>
>>> so I have created a config file for gdalenhance
>>>
>>> color.config:
>>>
>>> 1:Band -100:ScaleMin 11000:ScaleMax 0:3.667:30 30:1.667:60 60:0.833:120
>>> 120:0.429:190 190:0.231:255
>>> 2:Band -100:ScaleMin 11000:ScaleMax 0:3.667:30 30:1.667:60 60:0.833:120
>>> 120:0.429:190 190:0.231:255
>>> 3:Band -100:ScaleMin 11000:ScaleMax 0:3.667:30 30:1.667:60 60:0.833:120
>>> 120:0.429:190 190:0.231:255
>>>
>>> is it valid..? is it going to make a linear interpolation of the
>>> colors???
>>>
>>>
>>>
>>> --Nikos
>>>
>>> _______________________________________________
>>> gdal-dev mailing list
>>> gdal-dev at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>>
>>
>>
>>
>> --
>> Best regards,
>> Chaitanya kumar CH.
>>
>> +91-9494447584
>> 17.2416N 80.1426E
>>
>
>


-- 
Best regards,
Chaitanya kumar CH.

+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20120211/c4204803/attachment.html


More information about the gdal-dev mailing list