https://github.com/pacificcommunity/ofp-sam-alb-2024-cpue
SPALB cpue analysis for 2024 assessment
https://github.com/pacificcommunity/ofp-sam-alb-2024-cpue
Last synced: 2 months ago
JSON representation
SPALB cpue analysis for 2024 assessment
- Host: GitHub
- URL: https://github.com/pacificcommunity/ofp-sam-alb-2024-cpue
- Owner: PacificCommunity
- Created: 2024-11-26T09:00:26.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-02-19T05:46:29.000Z (4 months ago)
- Last Synced: 2025-02-19T06:28:31.963Z (4 months ago)
- Language: R
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# South Pacific ALB 2024 CPUE Analysis
## Two analytical steps
1. Fit model
2. Calculate predictionsThe predictions are calculated with the `get_index()` function, weighted by
area. Some 5x5 rectangles are larger than others, depending on the latitude. The
prediction uses a regular grid called `new.data`.## Spatial resolution
The observed data and model fit are based on 1x1 degree rectangles.
Model prediction is based on 5x5 degrees, used for calculating the weighting of
length data and for calculating the relative biomass indices.## Overview of scripts
### VAST analysis
For the ALB 2024 CPUE analysis, Thom first reran the 2021 VAST analysis that
Tiffany had done. As documented in
`Step_by_step_instructions_for_ALB_CPUE_standardization.R`, these are the
scripts involved in the VAST analysis:- Run `prep.ops.data.r` to prepare the raw data
- Run `plot.spatial.summaries.r` to plot summaries of data
- Run `alb_filter_data.r` to filter the data for albacore
- Run `target_cluster.r` to estimate targeting cluster (target species)
- Run `alb_cpue_run.r` to perform cpue analysis in VAST*Note:* there is some data preparation (sub-sampling) that happens in
`alb_cpue_run.r`- Get results using `get_indices.r`
### sdmTMB analysis
Next, Thom developed scripts to conduct `sdmTMB` analysis of ALB 2024 CPUE,
loosely based on YFT 2023 CPUE analysis.One difference between `VAST` and `sdmTMB` is that `sdmTMB` uses a mesh that
goes well beyond the geographic extent of the data.These are the scripts to run the `sdmTMB` analysis:
- Run `fit.sdmTMB.spawn.R `to fit and predict the spawning region indices
- Run `fit.sdmTMB.global.R` to fit and predict the global indices
- Run `calc.prop.knots.sampled.r` to get spatial coverage plot
- Run `plot_mesh.r`Encounter probability is used when a delta model is fitted and the data includes
zero-catch observations.Hooks between floats: check with Thom.
### Other scripts
Script | Purpose
--------------------------- | -------------------------------------------------
`alb_add_regions.R` | VAST code needed somewhere
`alb_cpue_prep.R` | VAST code needed somewhere
`compare.catch.quarterly.R` | Plot catch and effort time series by region
`fit.sdmTMB.vessel.R` | sdmTMB using vessel ID as fixed effect, not used
`fit.sdmTMB.vessel.RE.R` | sdmTMB using vessel ID as random effect, not used
`select_core_vessels.R` | Experiment with removing some 5x5, not used
`get_ENSO.R` | Get ENSO data from web (might want to keep month)
`get_indices.R` | Compare VAST and sdmTMB results