kappazeta / km_predict

S2 full image prediction
Apache License 2.0
20 stars 9 forks source link

Can sub-tiling be ignored? #14

Open EmanuelCastanho opened 2 years ago

EmanuelCastanho commented 2 years ago

Hi, I'm exploring this algorithm to apply to a Sentinel-2 level-2A product, however I'm having difficulties installing cm_vsm on MacOS as it depends on many system dependencies. Is a sub-tiling procedure really mandatory for this script to work? My current script outputs all bands separately from a Sentinel-2 Level-2A product scene with 10m resolution (bicubic resampling), is there a function inside cm_predict.py that accepts these inputs directly?

Thank you!

indrek-sunter commented 2 years ago

Hi,

Sorry, the model expects square sub-tiles 512 pixels wide and this is mandatory. To avoid artifacts on sub-tile edges, the neighboring sub-tiles also need to overlap each-other.

I think the most tricky dependency of cm_vsm and cm_predict is probably GDAL, which we use for raster georeferencing. Was it GDAL, or was it some other library which was the most difficult to set up?