[gdal-dev] help with resampling via python
Frank Warmerdam
warmerdam at pobox.com
Wed Apr 1 15:56:26 EDT 2009
Jose Gomez-Dans wrote:
> Hi Klokan,
>
> 2009/4/1 Klokan Petr Přidal <klokan at klokan.cz <mailto:klokan at klokan.cz>>
>
> gdal.RegenerateOverview() with 'average' and 'mode' algorithms.
> and
> gdal.ReprojectImage() with 'bilinear','cubic','cubicspline' and
> 'lanczos' algorithms.
>
>
> That's quite cool, but does RegenerateOverview() take into account
> NODATA values when doing the 'mode' or 'average'? It would be nice if it
> could ignore them!
Jose,
It appears based on review of the code that the "AVERAGE" overview
generation algorithm does ignore pixels determined to be nodata.
I have not experimentally confirmed this.
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