You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**Modular Hydrofabric Processes**: This package offers a collection of R packages specifically designed for hydroscience applications, akin to the tidyverse suite for hydrofabric development. It manages dependencies, resolves conflicts, and streamlines the installation process for quick setup.
27
27
28
28
2.**Hydrographic Network Utilities / Geoscience**: The repository includes tools for obtaining, manipulating, and enhancing hydrographic networks.
@@ -55,42 +55,41 @@ library(hydrofabric)
55
55
56
56
`library(hydrofabric)` will load the core packages (alphabetical):
57
57
58
-
*[climateR](https://github.com/mikejohnson51/climateR) for accessing federated data stores for parameter and attributes estimation
58
+
*[climateR](https://github.com/mikejohnson51/climateR) for accessing federated data for parameter and attributes estimation
59
59
*[hfsubsetR](https://github.com/lynker-spatial/) for cloud-based hydrofabric subsetting
60
60
*[hydrofab](https://github.com/mikejohnson51/hydrofab) a tool set for "fabricating" multiscale hydrofabrics
61
-
*[ngen.hydrofab](https://github.com/mikejohnson51/ngen.hydrofab) NextGen extensions for hydrofab
62
-
*[nhdplusTools](https://github.com/doi-usgs/nhdplusTools/) for network manipulation
63
-
*[zonal](https://github.com/mikejohnson51/zonal) for catchment parameter estimation
61
+
*[hydroloom](https://github.com/doi-usgs/nhdplusTools/) for network manipulation
62
+
*[zonal](https://github.com/mikejohnson51/zonal) for spatial grid to polygon summaries
64
63
65
64
Additionally it will load key geospatial data science libraries:
66
65
67
66
*`dplyr` (data.frames)
68
-
*`sf` (vector)
69
-
*`terra` (raster)
70
-
67
+
*`sf` (vector geodata)
68
+
*`terra` (raster geodata)
71
69
72
70
# Subsetting
73
71
74
-
```{r}
75
-
# The output directory
76
-
o = "vignettes/tutorial/example.gpkg"
72
+
```{r, eval = FALSE}
73
+
gpkg <- './conus_nextgen.gpkg'
74
+
75
+
get_hydrofabric(outfile = gpkg)
76
+
```
77
77
78
-
# Build subset
79
-
hfsubsetR::get_subset(comid = 101, outfile = o, overwrite = FALSE)
78
+
```{r}
79
+
subset_fabric <- get_subset(gpkg = gpkg,
80
+
comid = 101)
80
81
```
81
82
82
83
```{r, echo = FALSE}
83
84
{
84
-
plot(sf::read_sf(o, "divides")$geom)
85
-
plot(sf::read_sf(o, "flowpaths")$geom, col = "blue", add = TRUE)
plot(subset_fabric$flowpaths$geom, add = TRUE, col = "blue")
87
+
plot(subset_fabric$nexus, add = TRUE, col = "red", pch = 16)
87
88
}
88
89
```
89
90
90
91
We have _also_ created a CLI cloud based subsetter. Binaries of these can be installed at the [release page](https://github.com/lynker-spatial/hfsubsetCLI/releases).
91
92
92
-
> NOTE: A Python Implementation is coming soon!
93
-
94
93
# Hydrofabric Characteristic Data
95
94
96
95
A wide range of data can be appended to the hydrofabric (subsets) from resources including NOAA core modules, streamcat, hydroatlas, USGS catchment characteristics, and more.
@@ -100,19 +99,20 @@ Preliminary documentation of these can be found [here](https://github.com/NOAA-O
100
99
Additionally, open source tools like `climateR` and `zonal` can be used to rapidly access and summarize data for a catchment set:
0 commit comments