nsink_generate_n_removal_heatmap: Generate Nitrogen Removal Heatmap

View source: R/nsink_generate_static_maps.R

nsink_generate_n_removal_heatmapR Documentation

Generate Nitrogen Removal Heatmap

Description

Generates the heatmap. Only flowpaths that have one segment or more completely contained within the HUC are included. Practically, this will only remove flowpaths that do not intersect the stream network and extend beyond the HUC. This is rare.

Usage

nsink_generate_n_removal_heatmap(
  input_data,
  removal,
  samp_dens,
  ncpu = future::availableCores() - 1,
  seed = 23
)

Arguments

input_data

A list of input datasets created with nsink_prep_data.

removal

The removal raster stack or removal list, generated by nsink_calc_removal

samp_dens

A value, in the units of the input data, divided by total area of the input HUC. It is used to determine the number of points, determined through a regular sample, to calculate removal. For instance, a value of 90 would roughly equate to a point per every 90 meters.

ncpu

Number of CPUs to use for calculating flowpath removal for larger (i.e. greater than 50) number of flowpaths. Default is the number of cores available minus one.

seed

Random seed to ensure reproducibility of sample point creation across runs. Default set to 23.


USEPA/nsink documentation built on Feb. 8, 2025, 12:27 p.m.