Skip to content

Commit

Permalink
update flowchart figure
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilyMarkowitz-NOAA committed Oct 11, 2023
1 parent 43115dc commit 744c011
Show file tree
Hide file tree
Showing 127 changed files with 1,452 additions and 106 deletions.
2 changes: 1 addition & 1 deletion .quarto/xref/14aca4aa
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"entries":[],"options":{"chapters":true},"headings":["our-objective","user-resources","background-of-the-gap_products-repo","major-advantages"]}
{"headings":["our-objective","user-resources","background-of-the-gap_products-repo","major-advantages"],"entries":[],"options":{"chapters":true}}
21 changes: 16 additions & 5 deletions GAP-Production-Data-Documentation.tex
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@
\setcounter{page}{1}
\end{frontmatter}

%%%%% end titlepage extension code\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[frame hidden, interior hidden, sharp corners, enhanced, borderline west={3pt}{0pt}{shadecolor}, boxrule=0pt, breakable]}{\end{tcolorbox}}\fi
%%%%% end titlepage extension code\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[boxrule=0pt, borderline west={3pt}{0pt}{shadecolor}, sharp corners, interior hidden, frame hidden, enhanced, breakable]}{\end{tcolorbox}}\fi

\renewcommand*\contentsname{Table of contents}
{
Expand Down Expand Up @@ -1006,7 +1006,7 @@ \section{Data workflow from boat to

\begin{figure}[H]

{\centering \includegraphics[width=5.33in,height=5.33in]{content/intro-workflow_files/figure-latex/mermaid-figure-1.png}
{\centering \includegraphics[width=12.17in,height=2.96in]{content/intro-workflow_files/figure-latex/mermaid-figure-1.png}

}

Expand Down Expand Up @@ -2990,7 +2990,18 @@ \subsection{AKFIN\_CRUISE}\label{akfin_cruise}}
\hypertarget{akfin_haul}{%
\subsection{AKFIN\_HAUL}\label{akfin_haul}}

snapshot table for snapshot GAP\_PRODUCTS.AKFIN\_HAUL
This table is created by subsetting the RACEBASE.HAUL table to only
hauls with ABUNDANCE\_HAUL = `Y'. These are the hauls that are used for
the standard production tables in GAP\_PRODUCTS. These data are produced
by the Resource Assessment and Conservation Engineering Division (RACE)
Groundfish Assessment Program (GAP) of the Alaska Fisheries Science
Center (AFSC). There are legal restrictions on access to the data. These
data are not intended for public dissemination and should not be shared
without the explicit written consent of the data managers and owners
(NOAA Fisheries). The GitHub repository for the scripts that created
this code can be found at
https://github.com/afsc-gap-products/gap\_products. These data were last
updated September 26, 2023

Number of rows: 36,114

Expand Down Expand Up @@ -7840,7 +7851,7 @@ \chapter{Production run notes}\label{production-run-notes}}
\chapter{R Version Metadata}\label{r-version-metadata}}
\begin{verbatim}
R version 4.3.0 (2023-04-21 ucrt)
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19045)
Expand All @@ -7861,7 +7872,7 @@ \chapter{R Version Metadata}\label{r-version-metadata}}
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.3.0 fastmap_1.1.1 cli_3.6.1 tools_4.3.0
[1] compiler_4.3.1 fastmap_1.1.1 cli_3.6.1 tools_4.3.1
[5] htmltools_0.5.6 rstudioapi_0.15.0 yaml_2.3.7 rmarkdown_2.25
[9] knitr_1.44 jsonlite_1.8.7 xfun_0.40 digest_0.6.33
[13] rlang_1.1.1 evaluate_0.22
Expand Down
20 changes: 20 additions & 0 deletions _freeze/content/akfin-api-r/execute-results/docx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"hash": "cc747c053120d4d05915002dc8c2bcc2",
"result": {
"markdown": "---\ntitle: Access API data using R\n---\n\n\n\n\n\n\nUse the below function to pull AKFIN data through AKFIN's API.\n\n\n\n\n::: {.cell}\n\n```{.r .cell-code}\n# load libraries\nlibrary(dplyr)\nlibrary(magrittr)\nlibrary(httr)\nlibrary(flextable)\n\n# tell R to not use scientific notation\noptions(scipen=999)\n\n# function for pulling data from the api using the httr package\nget_gap_biomass<-function(area_id, species_code) {\n # paste(... collapse=\",\") puts commas between vector elements\n area_id <- paste(area_id, collapse = \",\")\n species_code <- paste(species_code, collapse = \",\")\n # httr code, parameters are after the '?'\n httr::content(\n httr::GET(paste0(\"https://apex.psmfc.org/akfin/data_marts/akmp/gap_biomass?area_id=\",\n area_id,\n \"&species_code=\",\n species_code)),\n type = \"application/json\") %>%\n # convert to data frame\n bind_rows()\n}\n```\n:::\n\n\n\n\n## Ex. 1: Load lingcod data\n\n\n\n\n::: {.cell tbl-cap='Ex. 1: Load lingcod data. '}\n\n```{.r .cell-code}\nlingcod_biomass <- get_gap_biomass(area_id=c(40, 41), species_code=21910)\nflextable::flextable(head(lingcod_biomass)) %>%\n flextable::theme_zebra()\n```\n:::\n",
"supporting": [
"akfin-api-r_files"
],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {
"knitr": [
"{\"type\":\"list\",\"attributes\":{},\"value\":[]}"
]
},
"preserve": null,
"postProcess": false
}
}
14 changes: 14 additions & 0 deletions _freeze/content/akfin-api-r/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hash": "cc747c053120d4d05915002dc8c2bcc2",
"result": {
"markdown": "---\ntitle: Access API data using R\n---\n\n\n\n\nUse the below function to pull AKFIN data through AKFIN's API.\n\n\n::: {.cell}\n\n```{.r .cell-code}\n# load libraries\nlibrary(dplyr)\nlibrary(magrittr)\nlibrary(httr)\nlibrary(flextable)\n\n# tell R to not use scientific notation\noptions(scipen=999)\n\n# function for pulling data from the api using the httr package\nget_gap_biomass<-function(area_id, species_code) {\n # paste(... collapse=\",\") puts commas between vector elements\n area_id <- paste(area_id, collapse = \",\")\n species_code <- paste(species_code, collapse = \",\")\n # httr code, parameters are after the '?'\n httr::content(\n httr::GET(paste0(\"https://apex.psmfc.org/akfin/data_marts/akmp/gap_biomass?area_id=\",\n area_id,\n \"&species_code=\",\n species_code)),\n type = \"application/json\") %>%\n # convert to data frame\n bind_rows()\n}\n```\n:::\n\n\n## Ex. 1: Load lingcod data\n\n\n::: {.cell tbl-cap='Ex. 1: Load lingcod data. '}\n\n```{.r .cell-code}\nlingcod_biomass <- get_gap_biomass(area_id=c(40, 41), species_code=21910)\nflextable::flextable(head(lingcod_biomass)) %>%\n flextable::theme_zebra()\n```\n:::\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
20 changes: 20 additions & 0 deletions _freeze/content/akfin-api-r/execute-results/tex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"hash": "cc747c053120d4d05915002dc8c2bcc2",
"result": {
"markdown": "---\ntitle: Access API data using R\n---\n\n\n\n\n\nUse the below function to pull AKFIN data through AKFIN's API.\n\n\n\n::: {.cell}\n\n```{.r .cell-code}\n# load libraries\nlibrary(dplyr)\nlibrary(magrittr)\nlibrary(httr)\nlibrary(flextable)\n\n# tell R to not use scientific notation\noptions(scipen=999)\n\n# function for pulling data from the api using the httr package\nget_gap_biomass<-function(area_id, species_code) {\n # paste(... collapse=\",\") puts commas between vector elements\n area_id <- paste(area_id, collapse = \",\")\n species_code <- paste(species_code, collapse = \",\")\n # httr code, parameters are after the '?'\n httr::content(\n httr::GET(paste0(\"https://apex.psmfc.org/akfin/data_marts/akmp/gap_biomass?area_id=\",\n area_id,\n \"&species_code=\",\n species_code)),\n type = \"application/json\") %>%\n # convert to data frame\n bind_rows()\n}\n```\n:::\n\n\n\n## Ex. 1: Load lingcod data\n\n\n\n::: {.cell tbl-cap='Ex. 1: Load lingcod data. '}\n\n```{.r .cell-code}\nlingcod_biomass <- get_gap_biomass(area_id=c(40, 41), species_code=21910)\nflextable::flextable(head(lingcod_biomass)) %>%\n flextable::theme_zebra()\n```\n:::\n",
"supporting": [
"akfin-api-r_files"
],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {
"knitr": [
"{\"type\":\"list\",\"attributes\":{},\"value\":[]}"
]
},
"preserve": null,
"postProcess": false
}
}
20 changes: 20 additions & 0 deletions _freeze/content/akfin-intro/execute-results/docx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"hash": "e233e051e22afdbc021da71ed102a06e",
"result": {
"markdown": "---\ntitle: AKFIN\n---\n\n\n\n\n\n\nThese data are used directly by stock assessors and are provided to The [Alaska Fisheries Information Network (AKFIN)]. \n\n## The Alaska Fisheries Information Network\n\nThe [Alaska Fisheries Information Network (AKFIN)](https://www.psmfc.org/program/alaska-fisheries-information-network-akfin) is a regional program that consolidates and supports the collection, processing, analysis, and reporting of fisheries statistics for North Pacific and Alaskan fisheries. AKFIN integrates this information into a single data management system using consistent methods and standardized formats. The Network then reports this information on its website, in various publications, and to researchers. The resulting data enables fishery managers, scientists, and associated agencies to supervise fisheries resources more effectively and efficiently. \n\nIf you are an AFSC employee with access to data through our internal database Oracle server, use this [guide](https://afsc-gap-products.github.io/gap_products/content/akfin-oracle-sql-r.html) to access our data. If not, reach out to AKFIN for a user account. \n\n## Cite this data\n\nUse the below [bibtext citations](https://github.com/afsc-gap-products/gap_products/blob/main/code/CITATION_GAPakfin.bib), as cited in our group's [citation repository](https://github.com/afsc-gap-products/citations/blob/main/cite/bibliography.bib) for citing the data created and maintained in this repo [@GAPakfin]. Add \"note = {Accessed: mm/dd/yyyy}\" to append the day this data was accessed. \n\n\n\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n```\n@misc{GAPakfin,\n author = {{Alaska Fisheries Information Network (AKFIN)}}, \n institution = {{NOAA Fisheries Alaska Fisheries Science Center, Goundfish Assessment Program}},\n year = {2023}, \n title = {AFSC Goundfish Assessment Program Design-Based Production Data},\n howpublished = {https://www.psmfc.org/program/alaska-fisheries-information-network-akfin},\n publisher = {{U.S. Dep. Commer.}},\n copyright = {Public Domain} \n}\n```\n:::\n:::\n",
"supporting": [
"akfin-intro_files"
],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {
"knitr": [
"{\"type\":\"list\",\"attributes\":{},\"value\":[]}"
]
},
"preserve": null,
"postProcess": false
}
}
14 changes: 14 additions & 0 deletions _freeze/content/akfin-intro/execute-results/html.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"hash": "e233e051e22afdbc021da71ed102a06e",
"result": {
"markdown": "---\ntitle: AKFIN\n---\n\n\n\n\nThese data are used directly by stock assessors and are provided to The [Alaska Fisheries Information Network (AKFIN)]. \n\n## The Alaska Fisheries Information Network\n\nThe [Alaska Fisheries Information Network (AKFIN)](https://www.psmfc.org/program/alaska-fisheries-information-network-akfin) is a regional program that consolidates and supports the collection, processing, analysis, and reporting of fisheries statistics for North Pacific and Alaskan fisheries. AKFIN integrates this information into a single data management system using consistent methods and standardized formats. The Network then reports this information on its website, in various publications, and to researchers. The resulting data enables fishery managers, scientists, and associated agencies to supervise fisheries resources more effectively and efficiently. \n\nIf you are an AFSC employee with access to data through our internal database Oracle server, use this [guide](https://afsc-gap-products.github.io/gap_products/content/akfin-oracle-sql-r.html) to access our data. If not, reach out to AKFIN for a user account. \n\n## Cite this data\n\nUse the below [bibtext citations](https://github.com/afsc-gap-products/gap_products/blob/main/code/CITATION_GAPakfin.bib), as cited in our group's [citation repository](https://github.com/afsc-gap-products/citations/blob/main/cite/bibliography.bib) for citing the data created and maintained in this repo [@GAPakfin]. Add \"note = {Accessed: mm/dd/yyyy}\" to append the day this data was accessed. \n\n\n::: {.cell}\n::: {.cell-output .cell-output-stdout}\n```\n@misc{GAPakfin,\n author = {{Alaska Fisheries Information Network (AKFIN)}}, \n institution = {{NOAA Fisheries Alaska Fisheries Science Center, Goundfish Assessment Program}},\n year = {2023}, \n title = {AFSC Goundfish Assessment Program Design-Based Production Data},\n howpublished = {https://www.psmfc.org/program/alaska-fisheries-information-network-akfin},\n publisher = {{U.S. Dep. Commer.}},\n copyright = {Public Domain} \n}\n```\n:::\n:::\n",
"supporting": [],
"filters": [
"rmarkdown/pagebreak.lua"
],
"includes": {},
"engineDependencies": {},
"preserve": {},
"postProcess": true
}
}
Loading

0 comments on commit 744c011

Please sign in to comment.