This repository contains all the pertinent code and analysis of Buenafe et al. (in press). Nature Communications
This project aims to:
- Describe historical larval distributions in the Indian and Pacific Oceans of 15 taxa from the boosted regression tree models built using digitized presence/absence Nishikawa et al. (1985) data (Buenafe et al., 2022) and historical environmental predictors (see Data below).
- Delineate potential drivers of larval distribution and hemispheric seasonality across these taxa.
- Identify larval hotspots that could correspond to potential spawning grounds for these species.
The scripts are named sequentially. To rerun all the analyses, the user would have to go through all the scripts within the /analyses/ folder sequentially. This requires downloading all necessary data from their original sources (see Data section below) and placing them in their respective directories. However, the repository already hosts the subset of data that is sufficient to run the analyses without downloading additional data.
-
01_climate_data/: processes climate model outputs from the Ocean Model Intercomparison Project Phase 2 (OMIP2) to prepare data for analysis and visualizationTo reproduce the climatology data, download Earth System Model outputs (see "Data" section below) and run the code in the markdown OMIP_runs.qmd.
-
02_preliminaries/: contains the preliminary scripts (prefixed with00_), which are called within the subsequent scripts, therefore there is no need to run them independently. -
03_assemble_predictors/to06_hotspot_analyses/:01_: assembles all the predictors and creates seasonal data sets with the larval data
To reproduce the distribution of the 15 taxa in
01p_DataLayers_AquaMaps.R), the user would have to download their distribution from AquaMaps (see Data below).02_through16_: generate models for all 15 taxa (all found in/analyses/04_models/). Scripts prefixed witha_refer to assembling the necessary data to run the models.b_scripts are where the full model is built.c_scripts are where the model outputs are restricted to areas where confidence is higher.
Note that
b_scripts take a significant amount of time to run, therefore the user can runc_scripts using existing files generated fromb_scripts that are found in the repository.To redo building the BRTs, make sure that the larval data (in
.rdsformat) from (Buenafe et al., 2022) is indata_input/fish. Please also make sure that thecrsfor these files are in+proj=longlat +lon_0=180 +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0(see lines 14-15 of00_SetupGrid.R). The files in this repository are reprojected files of (Buenafe et al., 2022).Models are found in
data_output/models/and model predictions for each taxa are found indata_output/predictions/-
17_: assembling model outputs across taxa and saving them as rasters, which can be accessed indata_output/final_raster -
18_: plotting hemispheric seasonality -
19_: plotting predictor preferences across taxa -
20_: calculating spatial aggregation index and seasonality index -
21_: extracting model parameters -
22_: principal component analysis to determine hotspots
The digitized larval data are found in (Buenafe et al., 2022). The following species were included in this study:
- Yellowfin tuna
- Skipjack tuna
- Albacore
- Swordfish
- Blue marlin
- Frigate tuna
- Bigeye tuna
- Pacific bluefin tuna
- Sauries
- Sailfish
- Southern bluefin tuna
- Slender tuna
- Shortbill spearfish
- Striped marlin
- Longfin escolar
The historical environmental predictors were prepared from the OMIP2 Earth System Models (Tsujino et al., 2020).
We used (in parentheses are the OMIP2 codes for the climate variables):
- temperature (tos)
- oxygen (o2os)
- pH (phos)
- chlorophyll-a (chlos)
- salinity (sos)
- mixed layer thickness (mlotst)
- nitrate (no3os)
- phosphate (po4os)
- ammonium (nh4os)
- zonal velocity (uo)
- meridional velocity (vo)
The ensembles used for each of the variables are subsets of the set of models found below.
Table 1. Set of models used.
| Model | Reference |
|---|---|
| ACCESS-OM2 | Hayashida et al. (2021) |
| ACCESS-OM2-025 | Holmes et al. (2021) |
| CESM2 | Danabasoglu et al. (2019) |
| CMCC-CM2-HR4 | Fogli et al. (2020) |
| CMCC-CM2-SR5 | Fogli et al. (2020) |
| CNRM-CM6-1 | Voldoire (2020) |
| CNRM-CM6-1-HR | Voldoire (2021) |
| EC-Earth3 | Consortium (EC-Earth; 2020) |
| FGOALS-f3-L | Lin (2019) |
| GFDL-CM4 | Hurlin et al. (2018) |
| MIROC6 | Komuro (2019) |
| MRI-ESM2.0 | Yukimoto et al. (2019) |
| NorESM2-LM | Bentsen et al. (2019) |
| TaiESM1-TIMCOM2 | Tseng et al. (2021) |
The mean depth was calculated using The General Bathymetric Chart of the Oceans.
The AquaMaps data can be accessed in AquaMaps.