Skip to content

cardinal affinities as a raster input #42

Open
@rafaqz

Description

@rafaqz

Now that we are mostly using RasterStack as an input, and using very large rasters lazily, its difficult to load sparse arrays for affinity and cost.

However these are simply the 4 or 8 neighbors of each pixel. To standardise this in an easily stored form, we can calculate n/e/s/w or n/ne/e/se/s/sw/w/nw affinity layers as tif/netcdf etc files, and combine them into the sparse matrix on the fly for each windowed region

Probably a Band dimension can hold the directions in a tiff, or we can switch to netcdf

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions