[gdal-dev] Pansharpening produces grayscale image?

Even Rouault even.rouault at spatialys.com
Thu Jun 30 00:45:49 PDT 2016


Le jeudi 30 juin 2016 09:15:33, Rutger a écrit :
> Does GDAL account for the alignment of the Landsat 8 bands? The center of a
> low-res pixel has the same location as the center of a pan-pixel (and thus
> other pan-pixels have their center over four corners of low-res pixels.)
> 
> Or is this a pre-processing step the user has to do? You could for example
> upsample the pan-band to 7.5m and then average again while changing the
> extent.

Rutger,

The behaviour of the pansharpening processing is described at :
http://www.gdal.org/gdal_vrttut.html#gdal_vrttut_pansharpen

To answer more precisely your question, this depends if the bands come with 
georegistration. If so, then the pansharpening should do the right thing. 
Otherwise you'll have to attach to them prior to pansharpening, for example 
with gdal_translate -a_ullr (-of VRT). You can use pixel units if needed to 
just describe the shift. Do not forget that GDAL convention for registration 
is the coordinates of the corner of pixels .

Even

> 
> Regards,
> Rutger
> 
> 
> 
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/gdal-dev-Pansharpening-produces-graysc
> ale-image-tp5274075p5274102.html Sent from the GDAL - Dev mailing list
> archive at Nabble.com.
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list