calculate_patches_in_watershed: Calculate how many patches in a watershed

View source: R/calculate_patches_in_watershed.R

calculate_patches_in_watershedR Documentation

Calculate how many patches in a watershed

Description

Converts watershed size and patch size to number of patches

Usage

calculate_patches_in_watershed(
  watershed_area_km2 = NULL,
  watershed_area_mi2 = NULL,
  patch_side_m
)

Arguments

watershed_area_km2

Watershed area in square kilometers. Dafaults to this value if both watershed_area_mi2 and watershed_area_mi2 are included as arguments.

watershed_area_mi2

Watershed area in square miles.

patch_side_m

Length of a patch side in meters

Author(s)

Ryan Bart

Examples

# Compute number of 100m patches in a square km and square mile
calculate_patches_in_watershed(watershed_area_mi2 = 1, patch_side_m = 100)
calculate_patches_in_watershed(watershed_area_km2 = 1, patch_side_m = 100)


ryanrbart/EcoHydroConversions documentation built on Feb. 13, 2023, 11:17 p.m.