R/calculate_data.R
make_rocky_sites.Rd
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")
)
raw data file containing fields: marine_site_name
, longitude
, latitude
.
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.
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.
either "csv" (default) or "erddap" for handling file format differences
sites A data frame with 59 rows and 4 variables:
National Marine Sanctuary code, e.g. CINMS or MBNMS
region
site