Skip to content

ric325/LarvaDistModels

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Historical hotspots of pelagic fish larvae in the Indian and Pacific Oceans.

DOI

This repository contains all the pertinent code and analysis of Buenafe et al. (submitted).

DESCRIPTION

This project aims to:

  1. 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).
  2. Delineate potential drivers of larval distribution and hemispheric seasonality across these taxa.
  3. Identify larval hotspots that could correspond to potential spawning grounds for these species.

The repository hosts the subset of data used to generate the boosted regression tree models (in Data/), but the raw and complete data can be extracted from their original sources described in Data below.

WORKFLOW

The scripts are named sequentially. To rerun all the analyses, the user would have to go through all the scripts starting from scripts prefixed with 01_. This requires that the user downloads all necessary data from their original sources (see Data below).

Note that scripts prefixed with 00_ are preliminary scripts and are called within the subsequent scripts. Therefore, there is no need to run them independently.

Summary of the code

  • 01_: assembles all the predictors and creates seasonal data sets with the larval data.

To redo all analyses, make sure all the data are in their respective directories. To reproduce the climatology data, download Earth System Model outputs (see Data below) and run the processModels.sh and calculateOceanographicFeats.sh scripts in Climatology/. The assembled data frames with all the predictor data and species data are found in Output/CSV/.

  • 02_ through 16_: generate models for all 15 taxa. Scripts prefixed with a_ 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.

To redo building the BRTs, make sure that the larval data (in .rds format) from (Buenafe et al., 2022) is in Data/Fish. Please also make sure that the crs for these files are in +proj=longlat +lon_0=180 +datum=WGS84 +ellps=WGS84 +towgs84=0,0,0 (see lines 14-15 of 00_SetupGrid.R). The files in this repository are reprojected files of (Buenafe et al., 2022).

Models are found in Output/Models/ and model predictions for each taxa are found in Output/Predictions/

  • 17_: assembling model outputs across taxa and saving them as rasters, which can be accessed in Output/FinalRaster

  • 18_: Principal Component Analysis to determine hotspots

  • 19_: plotting hemispheric seasonality

  • 20_: generating seasonal taxa richness maps

  • 21_: plotting model predictions vs predictors

  • 22_: calculating spatiotemporal dispersion

DATA

The digitized larval data are found in (Buenafe et al., 2022). The following species were included in this study:

  1. Yellowfin tuna
  2. Skipjack tuna
  3. Albacore
  4. Swordfish
  5. Blue marlin
  6. Frigate tuna
  7. Bigeye tuna
  8. Pacific bluefin tuna
  9. Sauries
  10. Sailfish
  11. Southern bluefin tuna
  12. Slender tuna
  13. Shortbill spearfish
  14. Striped marlin
  15. Longfin escolar

The historical environmental predictors were prepared from Coupled Model Intercomparison Project 6 (CMIP6) Earth System Models (https://esgf-node.llnl.gov/search/cmip6/). The ensembles used for each of the variables are subsets of the set of models found below.

We used (in parentheses are the CMIP6 codes for the climate variables):

  1. temperature (tos)
  2. oxygen (o2os)
  3. pH (phos)
  4. chlorophyll-a (chlos)
  5. salinity (sos)
  6. mixed layer thickness (mlotst)
  7. nitrate (no3os)
  8. phosphate (po4os)
  9. ammonium (nh4os)
  10. zonal velocity (uo)
  11. meridional velocity (vo)

Table 1. Set of models used.

Model Reference
ACCESS-ESM1-5 Ziehn et al. (2019)
BCC-CSM2-MR Wu et al. (2018)
CMCC-CM2-SR5 Lovato et al. (2020)
CMCC-ESM2 Lovato et al. (2021)
FGOALS-f3-L Yu (2019)
FGOALS-g3 Li (2019)
GFDL-CM4 Guo et al. (2018)
GFDL-ESM4 Krasting et al. (2018)
GISS-E2-1-G NASA Goddard Institute for Space Studies (2018)
GISS-E2-1-H NASA Goddard Institute for Space Studies (2018)
IPSL-CM5A2-INCA Boucher et al. (2020)
MCM-UA-1-0 Stouffer (2019)
MIROC-ES2L Hajima et al. (2019)
MIROC6 Tatebe & Watanabe (2018)
MPI-ESM1-2-HR Jungclaus et al. (2019)
MRI-ESM2-0 Yukimoto et al. (2019)
NorESM2-LM Seland et al. (2019)

The mean depth was calculated using The General Bathymetric Chart of the Oceans.

The AquaMaps data can be accessed in AquaMaps.

About

Creating distribution models for 15 taxa in Nishikawa dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 94.7%
  • Shell 5.3%