Make Sanctuary sites for mapping from raw rocky intertidal (MARINe) data file

make_rocky_sites(
  raw_csv,
  nms_ply = NULL,
  site_regions = NULL,
  raw_source = c("csv", "erddap")
)

Arguments

raw_csv

raw data file containing fields: marine_site_name, longitude, latitude.

nms_ply

optional National Marine Sanctuary polygon, e.g. from get_nms_polygons("ocnms") to spatially filter from raw_csv within a 0.01 decimal degrees (≈ 1.11 km). Usually include either parameter nms_ply or site_regions to select sites for a given sanctuary.

site_regions

optional lookup table containing fields for region rgn and site site to filter by site from raw_csv and append rgn field. Usually include either parameter nms_ply or site_regions to select sites for a given sanctuary.

raw_source

either "csv" (default) or "erddap" for handling file format differences

Value

sites A data frame with 59 rows and 4 variables:

nms

National Marine Sanctuary code, e.g. CINMS or MBNMS

rgn

region

site

site