Description Usage Arguments Details Value
Writes watershed data to the database
1 2 3 4 5 6 7 8 9 10 | write_watershed(
conn,
name,
stream,
pixels,
pix_time,
Tp,
Tr,
schema = "watersheds"
)
|
conn |
A |
name |
The watershed name (e.g., "vjosa") |
stream |
A vector map of streams, in sf format |
pixels |
A data.frame of pixel data, with IDs |
pix_time |
A data.frame of pixel-time data (e.g., discharge etc) |
Tp |
A pixel topology, in SparseMatrix format |
Tr |
A reach topology SparseMatrix |
schema |
Where to write it, normally do not change the default |
Column names in the tables MUST match those in the database.
NULL, has the side effect of writing watershed tables in the database
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.