English | Deutsch
Compare images¶
You want to compare two dates, two places, or two data types. These rules keep the comparison fair.
- Compare like with like.
Use the same period length (the mean of a week is noisier than the mean of a month), the same
max_cloud_coverand the samescl_classes. Changingscl_classeschanges which pixels are kept at all.- Use the same colours.
NDVI (Sentinel-2), EVI (Sentinel-2), NDWI (Sentinel-2), NDMI (Sentinel-2), NDSI (Sentinel-2), NDVI (Landsat) and Soil water index are drawn with a fixed value range, so the same colour always means the same value. For Land surface temperature (Sentinel-3) and Elevation (Copernicus DEM) the colours follow the image. Give both images the same range:
plot_lst(june_path, vmin=275, vmax=300) plot_lst(august_path, vmin=275, vmax=300)
- Colour pictures are comparable by eye.
True-colour image (Sentinel-2) and the false-colour images (False-colour urban image (Sentinel-2), False-colour infrared image (Sentinel-2), False-colour SWIR image (Sentinel-2)) use a fixed stretch. No statistics of the image are used, so the same reflectance always gets the same colour, whatever else is in the image. This is not true for the automatic min/max stretch of many GIS programs. See Colours and values.
- Do not calculate with the pictures.
The 8-bit pictures are for the eye: bright values are compressed and saturate. For differences, statistics or thresholds use reflectance: Calculate with reflectance.
- Copernicus Browser.
The stretch of the false-colour urban image (0 to 0.4, bands B12/B11/B04) is the one of the Sentinel Hub “false colour (urban)” layer; the infrared and SWIR images use the same stretch. That layer shows one acquisition date, while this package shows the cloud-masked mean of a period, and the highlight compression is re-implemented with NumPy (not compared pixel by pixel). Expect similar colours, not identical pixels.