Skip to contents

Load an existing N-Sink analysis folder

Usage

nsink_load(input_folder, base_name = "nsink_", projection = NULL, ...)

Arguments

input_folder

Folder that contains nsink files produced by nsink_build

base_name

A base name used to assign objects to the global environment.

projection

An optional CRS specified as a either an EPSG code (as numeric) or WKT (as string). Useful if projection is returned as unknown.

...

Passes to nsink_calc_removal for the off network arguments: off_network_lakes, off_network_streams, and off_network_canalsditches.

Value

Creates several lists in the global environment that would normally be created when running an N-Sink analysis. These include: a nsink_prep_data object, a nsink_calc_removal object, and a

nsink_generate_static_maps object

Examples

if (FALSE) {
library(nsink)

aea <- 5072
nsink_build(nsink_get_huc_id("Niantic River")$huc_12, aea,
            output_folder = "nsink_output", samp_dens = 300)
nsink_load(input_folder = "nsink_output",
           base_name = "nsink_")
}