Coder Social home page Coder Social logo

Shoreline error bugout? about rivgraph HOT 8 CLOSED

Lvulis avatar Lvulis commented on July 18, 2024
Shoreline error bugout?

from rivgraph.

Comments (8)

jonschwenk avatar jonschwenk commented on July 18, 2024

Did you look at the shoreline I made for your mask? I linked to it in another issue, but here it is again: https://drive.google.com/open?id=1mYE-PkJ5lB5S2OkZ8jkmEbgIDyJtJtsS

from rivgraph.

Lvulis avatar Lvulis commented on July 18, 2024

Yep and it worked perfectly! Should have noted last night I also got my installation to get up to assigning directionality but can't resolve a cycle. So here the issue is something with the shoreline I used. I will look at it more in a bit. was hoping this may be useful for you - is the error informative at all? If I get the same on error on another delta does that mean I need to adjust my shoreline by x or y?

from rivgraph.

jonschwenk avatar jonschwenk commented on July 18, 2024

Not sure. The shoreline should only intersect links at outlets, or links that will be removed during spur pruning. It should effectively delineate two separate subnetworks--the one you want to keep, and the one "in the ocean." So your initial shoreline that surrounded the entire delta would likely throw some weird errors.

from rivgraph.

Lvulis avatar Lvulis commented on July 18, 2024

Ok that makes sense, i was mostly concerned with the tidal/ice zone on the northern edge. On my phone but noting your comment in the doc would be extremely helpful (although this may just be because I'm using masks I defined for the shrinkage analysis)

from rivgraph.

Lvulis avatar Lvulis commented on July 18, 2024

OK issue resolved:

The shoreline I used had these two fields, LEFT_FID and RIGHT_FID. This was causing the cut_link_ids to all be -1. I changed the fields to match that of your shoreline and it worked. So solution is to have id as a field with NA as the entry. I also fixed my shoreline to be the actual shoreline.

Using my own shoreline/inlet nodes I am now able to use RG from start to assigning directionality. I'm not using the graph metrics for now but probably will soon - will let you know if more errors arise.

from rivgraph.

jonschwenk avatar jonschwenk commented on July 18, 2024

I should make these header names explicit instead of relying on the default (seemingly changing) geopandas labels.

from rivgraph.

Lvulis avatar Lvulis commented on July 18, 2024

It seems that the "LEFT_FID" is not geopandas fault by the way but some issue with how it was generated originally (in Arc). If by header names being explicit you mean stating what fields the shoreline file should have, agreed!

from rivgraph.

jonschwenk avatar jonschwenk commented on July 18, 2024

This has been addressed in the docs now: https://jonschwenk.github.io/RivGraph/issues/index.html

from rivgraph.

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.