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 <nhat...@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...@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 >> <nhat...@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@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
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev