[gdal-dev] gdalwarp: max, min, avg of the overlapping image area
Frank Warmerdam
warmerdam at pobox.com
Mon Aug 22 21:56:02 EDT 2011
On 11-08-22 04:57 PM, Daniela Czibener wrote:
> I'm using gdalwarp with two images that are not in the same location, but have
> a common area.
> In the common area, I'd like the resulting pixels values will be the maximum or
> average value, not the value of the last image in the source image list.
> Is there any option within the gdalwarp or I should use another GDAL tool?
Daniela,
I can't think of any way this could be accomplished with gdalwarp. But if you
were to warp both images to a common grid system you could do averaging with
a numpy - python script or a small GDAL based program.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the gdal-dev
mailing list