When there are a lot of masked tiles you can save a lot of computing time by making sure that s2p doesn't try to generate a DSM for fully masked tiles. So if all values in the mask are False, is_this_tile_useful should return False, None.
I also added two lines to masking.py to avoid computing the border mask if all values in the raster mask are False already.
When there are a lot of masked tiles you can save a lot of computing time by making sure that s2p doesn't try to generate a DSM for fully masked tiles. So if all values in the
mask
are False,is_this_tile_useful
should returnFalse, None
.I also added two lines to
masking.py
to avoid computing the border mask if all values in the raster mask are False already.Results of my small test:
Before this change
After this change