Description Usage Arguments Details Source
Format and compute derived a set of environmental variables from input dataset that contains HydroATLAS variables for the purpose of predicting intermittency.
1 | comp_derivedvar(in_dt, copy = FALSE)
|
copy |
(logical) whether to make a copy of |
dt |
data.table which contains rows as records and HydroATLAS environmental variables as columns. |
This function only formats and compute derived variables deemed
relevant for the intermittency analysis.
Steps include:
Convert some -9999 that should be 0 after checking them
Count the number of -9999 values per column
Convert the rest of the -9999 values to NA
Compute a set of derived variables based on existing variables in
HydroATLAS
(e.g. pre_mm_cvar= fifelse(pre_mm_cmx==0, 0, pre_mm_cmn/pre_mm_cmx)
)
Correct scaling from RiverATLAS (e.g. Degree of regulation is out of 10,000 in HydroATLAS)
Linke, S., Lehner, B., Dallaire, C. O., Ariwi, J., Grill, G., Anand, M., ... & Tan, F. (2019). Global hydro-environmental sub-basin and river reach characteristics at high spatial resolution. Scientific Data, 6(1), 1-15.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.