Giter Site home page Giter Site logo

Comments (7)

evetion avatar evetion commented on June 10, 2024

Yeah, this is something we need. A weighting factor for the y/x could be provided, probably as a matrix of the same size as the dem?

from geomorphometry.jl.

alex-s-gardner avatar alex-s-gardner commented on June 10, 2024

Ya, a row to column scaling would work. This could be a scalar (rectangular cells) or matrix the same size as the DEM (geographic).

from geomorphometry.jl.

alex-s-gardner avatar alex-s-gardner commented on June 10, 2024

should we introduce slope components (x and y) as a new function (maybe slopexy) of do we add a kwarg to slope?

do we adopt the convention that slope across columns to be x_slope and slope across rows to be y_slope?

from geomorphometry.jl.

evetion avatar evetion commented on June 10, 2024

Hmm. I was thinking of passing a x/y ratio as an argument to most methods. It can be a single value, or a column, or a matrix. The value and columns should be converted to a matrix so it can be used in the calculation.

Ideally, we can automatically set these things, if we have a trait for geographic stuff in GeoInterface. Let me whip up a PoC.

from geomorphometry.jl.

alex-s-gardner avatar alex-s-gardner commented on June 10, 2024

That sounds good to me and would be the use case for most users. For my workflows I will still need slope in x and slope in y, and curvature in x and curvature in y. I could back out slope x/y from slope and azimuth but I suspect it's faster just to compute them directly. But i think it will be strait forward to add those after the geographic stuff is implemented.

The idea of automating this sounds like a dream.

from geomorphometry.jl.

evetion avatar evetion commented on June 10, 2024

Feel free to make a new issue for separate x y slopes and curvature, as it is something we don't have now. Maybe you also have a reference for a preferred implementation?

from geomorphometry.jl.

alex-s-gardner avatar alex-s-gardner commented on June 10, 2024

Will do... we could add a "dims" kwarg to slope

from geomorphometry.jl.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.