Check if it is better to make creating the padded_elevation array dynamic where the added number of rows/columns is calculated based on the cpu architecture .
[pyramids] pyramids/dem.py (Lines 100-104)
# padding = 2
# pad_1 = padding - 1
# Create a padded elevation array for boundary conditions
padded_elev = np.full((rows + 2, cols + 2), np.nan, dtype=np.float32)
padded_elev[1:-1, 1:-1] = elev
Open in IDE · Open on GitHub
Created from JetBrains using CodeStream
Check if it is better to make creating the padded_elevation array dynamic where the added number of rows/columns is calculated based on the cpu architecture .
[pyramids] pyramids/dem.py (Lines 100-104)
Open in IDE · Open on GitHub
Created from JetBrains using CodeStream