developmentseed / landsat-util

A utility to search, download and process Landsat 8 satellite imagery
Creative Commons Zero v1.0 Universal
690 stars 147 forks source link

Pansharpened images are not properly stretched #106

Open bogitamat opened 9 years ago

bogitamat commented 9 years ago

Thanks for the good work and easy to use tool

I am facing a problem with pan sharpening. Pan sharpened images have reduced visual enhancement in comparison to images processed without --pansharp option (see http://tinypic.com/view.php?pic=ndsmcn&s=8#.Vd8fYmBHfuc , pan sharpened image on the left)

Would appreciate any help in the matter

P.S. I have the most up-to-date landsat-util on Mac Yosemite

JorgeGT commented 9 years ago

I have the same issue, on Arch Linux and Ubuntu boxes:

See

gmaclennan commented 9 years ago

This problem seems to be related to the pan sharpening calculations and the black 'nodata' around the image. When I use --clip as well as --pansharpen clipping the nodata, the color correction / histogram equalization works fine:

lc80090612015251lgn00_bands_432_pan_clipped_thumb lc80090612015251lgn00_bands_432_pan_thumb

scisco commented 9 years ago

@gmaclennan Great observation. Thanks for spending time figuring this out. This should help me coming up with a fix.

gmaclennan commented 8 years ago

Any update on this?

gmaclennan commented 8 years ago

Just to follow up on this, the problem seems to be with color correction and nodata, even without pansharpening. Here is a comparison of the same area, the first created with

landsat process landsat8image.tar.bz --clip=...

and the second created without --clip and cropping afterwards.

clip noclip

scisco commented 8 years ago

@gmaclennan do you have the scene numbers of the examples you mentioned above?

gmaclennan commented 8 years ago

Yes, the first is LC80090612015251LGN00 and the second is LC82310592014267LGN00

danlopez00 commented 8 years ago

Same problem. I am investigating on my end as well. Scene LC81050682014217LGN00 with -pansharen

`

> landsat process LC81050682014217LGN00.tar.bz -pansharpen

`

screen shot 2016-03-02 at 11 48 07 am