Comments (8)
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.
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.
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.
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.
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.
I should make these header names explicit instead of relying on the default (seemingly changing) geopandas labels.
from rivgraph.
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.
This has been addressed in the docs now: https://jonschwenk.github.io/RivGraph/issues/index.html
from rivgraph.
Related Issues (20)
- Fix deprecation warning HOT 4
- OSError: exception: access violation writing 0x0000000300000003, while running to_geovectors() function HOT 5
- Create a gallery for RG applications HOT 2
- Adding the solidity blob property to regionprops
- Issue importing RivGraph in Google Colab HOT 3
- Broken building/testing HOT 11
- Remove OpenCV dependency
- rivgraph not found in Google Colab notebook HOT 4
- Can't resolve environment HOT 1
- Add conda-forge to installation instructions HOT 1
- Can't install it HOT 3
- Error "Input vector should be 1-D" when generating mesh. HOT 2
- Solving environment problem HOT 2
- API documentation is blank HOT 4
- Binary channel mask scale/ mesh creation issues HOT 6
- Working with a super apex HOT 8
- Regarding calculation of migration rate of multithreaded rivers. HOT 1
- Issue with prune_network() function in Brahmaputra tutorial HOT 3
- Missing a conda-lock file for osx-arm64
- Error "Input vector should be 1-D" when generating mesh HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rivgraph.