mkoohafkan / flowregime Goto Github PK
View Code? Open in Web Editor NEWR package for computing environmental flow regime indicators
License: GNU General Public License v3.0
R package for computing environmental flow regime indicators
License: GNU General Public License v3.0
In function time_to_recede
(line 121 of flowregime.R) should be
low = min(l) + high - 1
The help files of these functions are a bit confusing. In particular the help file of the RVA() function. In the details, this function refers to a boundaries argument, which is not an argument in the RVA function, but is in the build_RVA_categories() function. In the help file of the build_RVA_categories() function, this argument is only briefly explained in the arguments. In addition, for the rvacat argument, the help file refers to RVA_categories() as a function, which is not a function in the package. I have assumed this refers to the build_RVA_categories() function.
I am happy to adjust and put in a pull request
I am suggesting a rewrite of the "while" loop in number_of_reversals to deal with flows with large numbers of 0's (ephemeral streams). I can put in a pull request
Here is the bit of code:
zidx = NA
while(length(zidx) > 0){
zidx = which(dpd == 0)
dpd[zidx] = dpd[zidx - 1]
}
zeros <- which(dpd == 0)
value <- which(dpd !=0)
dpd1 <- dpd[value]
result <- rollapply(dpd1, 2, function(x) x[2] != x[1], align = "right",
fill = "FALSE")
revflow <- dpd
revflow[value] <- result
revflow[zeros] <- FALSE
xts
hasn't been updated for a while; add it to enhances
or suggests
instead.
Should zoo be a dependency?
The code of the function suggests it uses build_EFC_thresholds(), but this function does not take “thresholds” as an argument, so it seems coding on this function is incomplete.
This means that currently the threshold for high flow and low flow is hard coded (Q75, Q25 and Q10 for high flow, low flow and extreme low flow respectively).
Something for the to-do list. I assume this should mimic the build_RVA_categories function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.