Data and code for: Ecological stability through nonlinear fluctuations and the portfolio effect
收藏资源简介:
### Ecological stability through nonlinear fluctuations and the portfolio effect Authors: Robert Hechler and Martin Krkosek Date: Feb 7, 2026 Email: robert.hechler@mail.utoronto.ca #### Description: This repository contains the data and scripts to reproduce our analyses and figures. In this study, we investigated the stability gained from nonlinear dynamics and the portfolio effect. #### This repository is organized as follows:- Archive: contains the analyzed data and code#### Where do the data come from?- Sockeye salmon time series from [DFO](https://github.com/Pacific-salmon-assess/dfo_salmon_compilation)- Sea surface temperature time series from: - [NOAA Extended Reconstructed SST V5 dataset](https://psl.noaa.gov/data/gridded/data.noaa.ersst.v5.html) - note: the SST raw SST .nc files are too large to host on GitHub, please download from source. #### To reproduce our analysis, please run the scripts in the following order:- `1_preprocess_data_recruits.R` - extracts and procresses the SST and fish time series- `2_fit_GP_EDM_newDFOdata.R` - fits the hierarchcial EDM model (fig 2)- `3_dynamic_correlations.R` - quantify similarity in maps (fig 3)- `4_conditionalResponses.R` - population responses to lags of recruitment, sst and npgo (supp fig 4)- `5_stability.R` - theoretical and empirical stability analysis (fig 4)- `6_map_timeseries.R` - plots the map for fig 1



