gdal
gdal copied to clipboard
Add GDALDataset::[Get|Compute]InterBandCovarianceMatrix() and corresponding C and Python API
This generates and reads STATISTICS_COVARIANCES band metadata items as done by ArcGIS:
https://pro.arcgis.com/en/pro-app/3.4/tool-reference/spatial-analyst/how-band-collection-statistics-works.htm
which is consistant with the results of numpy.cov(): https://numpy.org/devdocs//reference/generated/numpy.cov.html