sianderson / PFT_thermal_response

Marine phytoplankton functional types and their responses to thermal change. Code for Anderson et al. (2021)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PFT_thermal_response

Marine phytoplankton functional types and their responses to thermal change

These scripts are provided in the interests of open science. If you have questions or find errors, please let us know.

Contact:
Stephanie I. Anderson
Graduate School of Oceanography
University of Rhode Island
sianderson@uri.edu

Directory structure

  • data: has the raw data
  • output: files output by scripts
  • scripts: run using data and output, produce temp, output, figures, and tables
  • figures: plotted figures
  • SST_data: SST rasters generated for the analyzed time periods

Analysis workflow breif overview

Script Overview

  1. Area_on_Earth.R

    1. Contains:
      1. functions to calculate lat/lon grid sizes
      2. Generates a raster of grid areas which can be used in later math
    2. Requires
      1. lat/lon inputs
  2. Curve_comparison.R

    1. Contains:
      1. Statistical Analyses comparing thermal reaction norms
      2. Extended Figure 2
    2. Requires
      1. Output from Thermal_reaction_norms.R (Isolate_growth_bounds.csv)
  3. custom_theme.R

    1. plot characteristics for use with ggplot
  4. Growth_change.R

    1. Contains:
      1. Predicted Growth Change by 2100
      2. Figure 5
      3. Calculations for cyanobacteria range expansion
    2. Requires
      1. SST temperature from SST_multimodel_ensemble.R
  5. Isolation_map.R

    1. Map of Strain isolation locations (Extended Figure 1)
  6. nbcurve.R

    1. thermal reaction norm function from Thomas et al 2012
  7. SST_multimodel_ensemble.R

    1. Contains:
      1. selects and prepares SST multi-model ensemble data for specific time periods
      2. computes SST change by latitude (change_by_lat.csv)
    2. Requires
      1. SST temperature data downloaded from http://climexp.knmi.nl/
  8. Thermal_capacities.R

    1. Contains:
      1. Modeled temperatures for each strain based on isolation locations
      2. Calculation of thermal capacities
      3. Figure 3
      4. Extended Figure 6
      5. outputs Thermal_capacity_by_group.csv
  9. Thermal_reaction_norms.R

    1. Contains:
      1. Phytoplankton functional type thermal reaction norms (Figure 1)
      2. Exponential curve fits
      3. Q10 calculations (Table 1)
      4. Extended Figures 3 & 5
      5. outputs Isolate_growth_bounds.csv

About

Marine phytoplankton functional types and their responses to thermal change. Code for Anderson et al. (2021)


Languages

Language:R 100.0%