Closed lukasValentin closed 1 year ago
The changes have been integrated into RasterCollection.to_dataframe()
and successfully tested using https://github.com/EOA-team/eodal_notebooks/blob/master/notebooks/Sentinel-2/sentinel2_field_parcel_extraction.ipynb by ignoring the spatial resampling of all bands so that RasterCollection.from_bandstack()
was False
In case a RasterCollection where
is_bandstack()
returnsFalse
(i.e., the bands in the RasterCollection have dfferent pixel sizes, geographic extents or reference systems), theRasterCollection.to_dataframe()
method fails with a key error, e.g.This is because of an incorrect call of
pandas.join
that was never tested properly.The solution is to use the work-around proposed by @atoparseks in case the
is_bandstack()
method returnsFalse
.