Git Product home page Git Product logo

Comments (4)

erikafreeman avatar erikafreeman commented on June 7, 2024

and I forgot to mention that the wbt.elevation_above_stream line works.

from whitebox-tools.

jblindsay avatar jblindsay commented on June 7, 2024

@erikafreeman I just tested this tool on a sample DEM that I had and it worked as expected. Can you share your DEM and stream file so that I can try to replicate your issue?

from whitebox-tools.

jblindsay avatar jblindsay commented on June 7, 2024

I suspect that this issue was related to the GeoTIFF reader/writer and has now been resolved and so I am closing it. My testing with the tool does not show any issue. If you encounter any further problems, please feel free to re-open it.

from whitebox-tools.

Atreyagaurav avatar Atreyagaurav commented on June 7, 2024

The problem is not from GeoTIFF, but from the algorithm.

I've mentioned it here: #245

Maybe you ignored it thinking it's the issue from ourside the whitebox tools.

The problem is, the tool masks the value if "streams" raster has no_data values on it. For the streams file normally generated, it's fine as it has 1 for streams and 0 for others, but if you've run it through the ordering algorithms, then it'll have numbers for streams and no_data for others, in that case the algorithm will only output values on the streams and have mostly empty output.

You can find the fix that I purposed at that time on the linked issue. But the code seems to have changed since then, I can open up a pull request with a new code if I can figure out what to change on the new one again.

Here are some files that you can use to replicate it in the latest version. https://drive.google.com/drive/folders/16BPmX8jI8xJGFsKIHcQjioJ2b5Qjx4Ya?usp=sharing

You can try to run it with streams.tif and ordered-streams.tif to see what I mean.

from whitebox-tools.

Related Issues (20)

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.