diff --git a/DESCRIPTION b/DESCRIPTION index e421e4a..dd775c6 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: akgfmaps Type: Package Title: Alaska Groundfish and Ecosystem Survey Area Mapping -Version: 4.0.0 -Date: 2025-01-03 +Version: 4.0.1 +Date: 2025-01-07 Authors@R: c(person("Sean", "Rohan", email = "sean.rohan@noaa.gov", role = c("aut", "cre")), person("Emily", "Markowitz", email = "emily.markowitz@noaa.gov", role = "ctb"), person("Zack", "Oyafuso", email = "zack.oyafuso@noaa.gov", role = "ctb"), diff --git a/NEWS b/NEWS index c9309aa..3263f2d 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,12 @@ +akgfmaps 4.0.1 (January 7, 2025) +---------------------------------------------------------------- + +BUG FIX + +- Change STATION fields to use GRID_X-GRID_Y-STRATUM naming + convention. + + akgfmaps 4.0.0 (January 3, 2025) ---------------------------------------------------------------- diff --git a/analysis/akgfmaps4/make_bt_gpkg.R b/analysis/akgfmaps4/make_bt_gpkg.R index 3e68781..8105c71 100644 --- a/analysis/akgfmaps4/make_bt_gpkg.R +++ b/analysis/akgfmaps4/make_bt_gpkg.R @@ -81,14 +81,13 @@ goa_stratum_2025 |> append = TRUE, delete_dsn = FALSE) - goa_station_grid_2025 <- - sf::st_read(here::here("analysis", "goa_strata_2025", "goaai_grid_2025.shp")) |> - sf::st_intersection(goa_stratum_2025) |> - dplyr::mutate(AREA_M2 = as.numeric(sf::st_area(geometry)), - STATION = paste0(AREA_ID, "-", GRIDID), + sf::st_read(here::here("analysis", "goa_strata_2025", "goa_stations_2025.gpkg")) |> + dplyr::mutate(AREA_M2 = AREA_KM2*1e6, + SURVEY_DEFINITION_ID = 47, + DESIGN_YEAR = 2025, AREA_TYPE = "STATION") |> - dplyr::select(AREA_TYPE, SURVEY_DEFINITION_ID, DESIGN_YEAR, GRID_ID = id, STATION, AREA_M2) + dplyr::select(AREA_TYPE, SURVEY_DEFINITION_ID, DESIGN_YEAR, GRID_ID = GRIDID, STATION, AREA_M2) goa_station_grid_2025 |> sf::st_write(dsn = here::here("inst", "extdata", "afsc_bottom_trawl_surveys.gpkg"), diff --git a/inst/extdata/afsc_bottom_trawl_surveys.gpkg b/inst/extdata/afsc_bottom_trawl_surveys.gpkg index 3272bbf..e2a6753 100644 Binary files a/inst/extdata/afsc_bottom_trawl_surveys.gpkg and b/inst/extdata/afsc_bottom_trawl_surveys.gpkg differ