Skip to content

Compatibility with Raster matrix #51

@pierrethiriet

Description

@pierrethiriet

I am struggling to replicate the minimal example, including Rasters from the Concept chapter of the documentation.

In the case of the slope function, for example, the Raster doesn't seem recognized with the following output:

MethodError: no method matching slope(::Raster{…}; method::Horn)

But, the Geomorphometry.cellsize(raster) command worked as expected.
(Julia 1.11.5, Rasters v0.14.4, Geomorphometry v0.7.0)

Minimal example :
file downloaded from "https://github.com/Deltares/Geomorphometry.jl/releases/download/v0.6.0/saba.tif" and located in the script folder.

using Rasters
using Geomorphometry
import ArchGDAL

path = @__DIR__
# file from url : "https://github.com/Deltares/Geomorphometry.jl/releases/download/v0.6.0/saba.tif"

r = Raster(joinpath(path, "saba.tif"))
Geomorphometry.cellsize(r)
slope(r, method=Horn())

Thanks a lot
Pierre

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