Git Product home page Git Product logo

nsink's People

Contributors

jbousquin avatar jhollist avatar qkellogg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

qkellogg

nsink's Issues

Intermittent Bug on nsink_generate_static_maps

There is an intermittent bug on generating the static maps. Happened ~3 times on my tests. Throws this error:

Error in CPL_geos_op2(op, st_geometry(x), st_geometry(y)) : 
  Evaluation error: IllegalArgumentException: point array must contain 0 or >1 elements.

I think it is due to a starting location for a flowpath that results in a LINESTRING with only one point. Not sure if this occurs becuase the flow direction creates a single point flow path or if the point is directly on an existing flowline. Also not sure if this is occurring in the flowpath generation or in the flowpath summary. Been hard to recreate and find true culprit.

Unsatisfying fix for now is to re-run nsink_generate_static_maps as the bug is rare and unlikely to show itself twice...

Disconnected flowpaths

Part of flowpaths were missing due to the disconnected NHD Plus streams. See example for East River-Frontal Guilford Harbor (huc12 = 011000040203).

image

clean up and test examples

  • nsink_build
  • nsink_calc_removal
  • nsink_generate_flowpath
  • nsink_generate_static_maps
  • nsink_get_data
  • nsink_prep_data
  • nsink_summarize_flowpath

How to deal with off-network hydrology

Do we have info for off network streams and lakes (e.g. kettle ponds) to calculate removal?

Need to figure out a way to include in flowpath when flowlines are not on network.

Jones River good example of these things happening.

raster vs hybrid method

I don't think I need the two methods anymore as I think I have it hard coded for hybrid everywhere. Look into removing this option...

in both nsink_generate_flowpath and nsink_summarize flowpath. Look for other instances and see if I can standardize to just a single method.

nsink_get_data function error, url moved?

Hi:
I get the following error when running the nsink_get_data function:
manhan_download <- nsink_get_data(manhan_huc_id, data_dir = "nsink_manhan_data")
Error in nsink_get_plus_remotepath(rpu[i], "NHDPlusAttributes") :
Neither https://s3.amazonaws.com/edap-nhdplus/NHDPlusV21/Data/NHDPlusNE/NHDPlusV21_NE_01_NHDPlusAttributes_09.7z or https://s3.amazonaws.com/edap-nhdplus/NHDPlusV21/Data/NHDPlusNE/NHDPlus01/NHDPlusV21_NE_01_NHDPlusAttributes_09.7z is a valid URL

I ran the Niantic example in the vignette and received the same error message.

Think the base url in the utils.R code needs to be changed from "https://s3.amazonaws.com/edap-nhdplus/NHDPlusV21/Data/NHDPlus" to "https://edap-ow-data-commons.s3.amazonaws.com/NHDPlusV21/Data/NHDPlus"?

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.