Skip to content

Commit 33f463d

Browse files
authored
Merge pull request #45 from NEFSC/epu_sf
epu_sf documentation
2 parents afd0b08 + 08dfba8 commit 33f463d

File tree

6 files changed

+57
-6
lines changed

6 files changed

+57
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Encoding: UTF-8
1010
Roxygen: list(markdown = TRUE)
1111
RoxygenNote: 7.2.3
1212
Depends:
13-
R (>= 2.10)
13+
R (>= 3.5.0)
1414
Imports:
1515
sf
1616
Suggests:

R/data_epu_sf.R

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#' Ecological Production Units
2+
#'
3+
#' An sf object containing the Northeast US shelf Ecological Production Units (EPUs).
4+
#' Ecological Production Units (EPUs) delineate regions unique in physiographic, oceanographic and biotic aspects on the Northeast U.S. Continental Shelf, representing an area of approximately 264,000 km within the 200 m isobath. There are four EPUs on the Shelf, including the Mid-Atlantic Bight (MAB), Georges Bank (GB), Gulf of Maine (GOM), and Scotian Shelf (SS). The Scotian Shelf lies outside the management domain of US Fishery Management Councils and is generally not considered in State of the Ecosystem Reports.
5+
#'
6+
#' @format A data frame/ \code{sf} object
7+
#' \describe{
8+
#' \item{Geometry type}{MULTIPOLYGON}
9+
#' \item{Dimension}{XY}
10+
#' \item{Bounding box}{xmin: -77 ymin: 35.8327 xmax: -65.66667 ymax: 44.66667}
11+
#' \item{Geodetic CRS}{ +proj=longlat +lat_0=40 +lon_0=-77+x_0=0 +y_0=0 +datum=NAD83 +no_defs +ellps=GRS80 +towgs84=0,0,0}
12+
#' \item{Features}{4 x 3}
13+
#' \item{Metadata}{See source}
14+
#' }
15+
#'
16+
#'
17+
#' @docType data
18+
#' @name epu_sf
19+
#' @usage data("epu_sf")
20+
#' @keywords datasets
21+
#' @source \url{https://noaa-edab.github.io/tech-doc/epu.html}
22+
NULL

data-raw/get_epu_sf.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ gis.dir <- here::here('data-raw','gis')
1313
get_epu_sf <- function(save_clean){
1414
crs <- "+proj=longlat +lat_1=35 +lat_2=45 +lat_0=40 +lon_0=-77+x_0=0
1515
+y_0=0 +datum=NAD83 +no_defs +ellps=GRS80 +towgs84=0,0,0"
16-
epu_shp <- rgdal::readOGR(file.path(gis.dir, "EPU_Extended.shp"), verbose = F)
17-
raster::crs(epu_shp) <- crs
16+
epu_shp <- sf::st_as_sf(rgdal::readOGR(file.path(gis.dir, "EPU_Extended.shp"), verbose = F))
17+
sf::st_crs(epu_shp) <- crs
1818
epu_sf <- as(epu_shp, "sf")
1919

2020
if (save_clean){
21-
usethis::use_data(epu_sf)
21+
usethis::use_data(epu_sf, overwrite = TRUE)
2222
} else {
2323
return(epu_sf)
2424
}

data/epu_sf.rda

390 Bytes
Binary file not shown.

man/epu_sf.Rd

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgdown/_pkgdown.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ reference:
7979
- contents:
8080
- starts_with("Statistical_")
8181
- starts_with("NAFO_")
82-
- final_mass_inshore_stat
83-
- Herring_Management_Areas
82+
- "final_mass_inshore_stat"
83+
- "Herring_Management_Areas"
84+
- "epu_sf"
8485
- title: Closed Areas
8586
desc: Areas in which fishing is restricted
8687
- contents:

0 commit comments

Comments
 (0)