-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from NOAA-EDAB/dev
Update master with all data and plot corrections in dev as of Feb 8
- Loading branch information
Showing
21 changed files
with
171 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,6 @@ Suggests: | |
zoo, | ||
rlang | ||
VignetteBuilder: knitr | ||
RoxygenNote: 7.3.0 | ||
RoxygenNote: 7.3.1 | ||
Depends: | ||
R (>= 2.10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+2.91 MB
data-raw/Fishery Impacts from OSW Development_2023 SOE Report_Christel_UPDATED.xlsx
Binary file not shown.
55 changes: 55 additions & 0 deletions
55
...-raw/UPDATED_wea_landings_2023 SOE Reports_Christel - Douglas Christel - NOAA Federal.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
GARFO and ASMFC Managed Species,Maximum Percent Total Annual Regional Species Landings,Maximum Percent Total Annual Regional Species Revenue | ||
Redfish,0.537737474,0.531995934 | ||
Pollock,0.403607303,0.427294448 | ||
White hake,0.33995244,0.3354793 | ||
American plaice,0.280356165,0.262408696 | ||
Witch flounder,0.225986683,0.25206003 | ||
Haddock,0.227643039,0.239032168 | ||
Atlantic halibut,0.235914109,0.228287263 | ||
Monkfish ,0.199184927,0.196783891 | ||
Skate species,0.29,0.3 | ||
Atlantic surfclam,0.168852126,0.175173059 | ||
Yellowtail flounder,0.152951316,0.149214693 | ||
Offshore hake,0.046486926,0.14593979 | ||
Atlantic cod,0.149582482,0.145768893 | ||
Atlantic menhaden**,0.134323765,0.141880564 | ||
American shad*,0.027404255,0.135030286 | ||
Red hake,0.078440074,0.112420702 | ||
Atlantic sea scallop,0.090517481,0.100980112 | ||
Black sea bass,0.097270244,0.099990201 | ||
American eel**,0.097294616,0.093826996 | ||
Silver hake,0.068394326,0.086802419 | ||
Longfin squid,0.080603421,0.082009373 | ||
Scup,0.085717641,0.080968966 | ||
Atlantic mackerel,0.084275349,0.077206562 | ||
Butterfish,0.049862166,0.060246321 | ||
Golden Tilefish,0.060738847,0.057944899 | ||
Chub mackerel,0.061197443,0.055954247 | ||
Winter flounder,0.053520349,0.054544782 | ||
Summer flounder,0.04919601,0.054018854 | ||
American lobster**,0.060314547,0.054010744 | ||
Jonah crab**,0.053231914,0.053091491 | ||
Tautog**,0.04324992,0.050759331 | ||
Atlantic herring,0.04220826,0.049413471 | ||
Bluefish,0.042752088,0.043543898 | ||
Windowpane flounder,0.025095714,0.039795363 | ||
Spiny dogfish,0.038110711,0.035157093 | ||
Ocean quahog,0.031717511,0.032185999 | ||
Horseshoe crab**,0.034464121,0.031248412 | ||
Cobia*,0.032581567,0.029428304 | ||
Atlantic croaker**,0.017050712,0.017970042 | ||
Illex squid,0.018699965,0.016932307 | ||
Striped bass,0.022556611,0.015895645 | ||
Black drum*,0.008870124,0.009620579 | ||
Weakfish*,0.008332349,0.007344359 | ||
Spot**,0.003224814,0.003402403 | ||
Hickory shad*,0.005227273,0.001179856 | ||
,, | ||
,, | ||
,, | ||
,, | ||
,, | ||
,, | ||
,, | ||
,, | ||
,, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,28 +9,45 @@ raw.dir <- here::here("data-raw") | |
|
||
## Doug Christel | ||
#wind_xlsx<-"CHRISTEL_2022 State of the Ecosystem Report_Max WEA Species Landings and Revenue.xlsx" | ||
wind_xlsx<-"SOE 2023 update_Offshore Wind Fishery Data_Christel (3).xlsx" | ||
wind_rev_xlsx<-"Fishery Impacts from OSW Development_2023 SOE Report_Christel_UPDATED.xlsx" | ||
get_wea_landings_rev <- function(save_clean = F){ | ||
# import data | ||
wea_landings_rev<-readxl::read_excel(file.path(raw.dir,wind_xlsx), sheet = "Highest % Rev Table") %>% | ||
wea_landings_rev<-readxl::read_excel(file.path(raw.dir,wind_rev_xlsx), | ||
sheet = "Cumulative Max Rev and Land") %>% | ||
# janitor::row_to_names(.,1) %>% | ||
# select("Max % Regional Revenue and Landings of fisheries managed by the Atlantic States Marine Fisheries Commission and the New England and Mid-Atlantic Fishery Management Council within Existing Lease Areas and the Draft Primary and Secondary Central Atlantic Call Areas") | ||
|
||
janitor::row_to_names(.,3) %>% | ||
dplyr::select( "NEFMC, MAFMC, and ASMFC Managed Species", | ||
"Maximum Percent Total Annual Regional Species Landings", | ||
"Maximum Percent Total Annual Regional Species Revenue") %>% | ||
dplyr::rename("perc_landings_max" = "Maximum Percent Total Annual Regional Species Landings", | ||
"perc_revenue_max" = "Maximum Percent Total Annual Regional Species Revenue" ) %>% | ||
dplyr::select( "NEFMC and MAFMC Managed Species", | ||
"Maximum Percent Total Annual Regional Species Landings...9", | ||
"Maximum Percent Total Annual Regional Species Revenue...8") %>% | ||
dplyr::rename("NEFMC, MAFMC, and ASMFC Managed Species" = "NEFMC and MAFMC Managed Species", | ||
"perc_landings_max" = "Maximum Percent Total Annual Regional Species Landings...9", | ||
"perc_revenue_max" = "Maximum Percent Total Annual Regional Species Revenue...8") %>% | ||
tidyr::drop_na() %>% | ||
dplyr::mutate(perc_landings_max = as.numeric(perc_landings_max)*100, | ||
perc_revenue_max = as.numeric(perc_revenue_max)*100, | ||
Units = c("Percent")) | ||
Units = c("Percent")) %>% | ||
dplyr::mutate(across(where(is.numeric), ~round(., 0))) %>% | ||
dplyr::mutate(Council = "NEFSC") | ||
|
||
# Add council data to dataset | ||
mafmc <- list("Atlantic mackerel", "Black sea bass", "Bluefish", "Blueline tilefish", "Butterfish", | ||
"Atlantic chub mackerel", "Golden tilefish", "Illex squid", "Longfin squid", | ||
"Ocean quahog", "Scup", "Summer flounder", "Atlantic surfclam") | ||
|
||
for (i in 1:length(mafmc)){ | ||
wea_landings_rev <- wea_landings_rev %>% | ||
dplyr::mutate(Council = replace(Council, wea_landings_rev$`NEFMC, MAFMC, and ASMFC Managed Species` == mafmc[i], "MAFMC")) | ||
} | ||
|
||
wea_landings_rev <- wea_landings_rev %>% | ||
dplyr::mutate(Council = replace(Council, wea_landings_rev$`NEFMC, MAFMC, and ASMFC Managed Species` == "Monkfish", "MAFMC/NEFMC")) %>% | ||
dplyr::mutate(Council = replace(Council, wea_landings_rev$`NEFMC, MAFMC, and ASMFC Managed Species` == "Spiny dogfish", "MAFMC/NEFMC")) | ||
|
||
# metadata ---- | ||
attr(wea_landings_rev, "tech-doc_url") <- "https://noaa-edab.github.io/tech-doc/fisheries-revenue-in-wind-development-areas.html" | ||
attr(wea_landings_rev, "data_files") <- list( | ||
wind_xlsx = wind_xlsx) | ||
wind_rev_xlsx = wind_rev_xlsx) | ||
attr(wea_landings_rev, "data_steward") <- c( | ||
"Doug Christel <[email protected]>") | ||
attr(wea_landings_rev, "plot_script") <- list( | ||
|
@@ -45,8 +62,3 @@ get_wea_landings_rev <- function(save_clean = F){ | |
} | ||
} | ||
get_wea_landings_rev(save_clean = T) | ||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.