Describe the bug
When working with large rasters, the 1 - Prepare Multiprocessing pipeline stage sometimes fails with an Unable to allocate memory error.
This is being caused by inefficiencies in line 195:
smp_grid = smp_grid.astype(int) * mask
To Reproduce
Steps to reproduce the behavior:
- Download Linnea's test library
- Try to run first pipeline stage
Expected behavior
The stage to run without error.
Software versions:
- SyncroSim: [e.g. 3.0.9]
- WISDM [e.g. 2.1.1]