Skip to content

dynamic arrays Padding instead of adding 2 rows/columns #66

Description

@MAfarrag

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions