Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should Geomorphometry.jl also include the ability for sparse calculations? #35

Closed
alex-s-gardner opened this issue Jan 3, 2024 · 1 comment

Comments

@alex-s-gardner
Copy link
Contributor

I have a global high-resolution DEM (cop30) and a ton of profile data (ICESat-2) and I'd like to calculate the slope and curvature at each ICESat-2 measurement point. I could do this by calculating slope and curvature everywhere but it would be much faster (less allocations) to simply calculate slope and curvature at each point. This is a utility that I often need but have not found.

Looking into Stencils.jl it seems like this shouldn't be too difficult... the steps would look like this

  1. lazily read in profile data (probably Rasters.jl)
  2. eagerly read data cropped to extents of profile data + a buffer for calculation of slope, curvature, ect
  3. cast copped data to a SencilArray = A
  4. loop though each intersecting index of A and apply functions

I'm guessing that this is functionality that others have built or would want but it's not clear where such functionality should live. Given that Geomorphometry.jl is home to most of the funtions I'm wondering if it should live here.

Thoughts?

@alex-s-gardner
Copy link
Contributor Author

Closing as this is probably better suited for Slack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant