ohi logo
OHI Science | Citation policy

1 Source

We use the methods and code from Casey O’Hara: https://github.com/oharac/spp_risk_dists to prepare the data for the species subgoal.

Reference:

2 Summary

Spatial species range data and extinction risk data from IUCN is used to generate regional scores for the Species subgoal (part of the Biodiversity goal) and resilience layers.

Mean risk status per cell: Species ranges are converted to a global spatial raster of 10 km resolution.

The mean extinction risk for each cell, \(\bar{R}_{cell}\), is calculated by averaging the IUCN extinction risk of the species with ranges overlapping the cell.

Risk is a scaled value representing the species extinction risk category: * ‘LC’ = 0.0, ‘NT’ = 0.2, ‘VU’ = 0.4, ‘EN’ = 0.6, ‘CR’ = 0.8, ‘EX’ = 1.0

\[\bar{R}_{cell} = \frac{\displaystyle\sum_{species}(Risk)}{n_{spp}}\]

Mean risk status per region: The mean extinction risk for a region, \(\bar{R}_{SPP}\), is estimated by averaging the risk values of the raster cells falling within each OHI region, with each cell’s contribution weighted by the number of species in the cell.

Species goal model

The regional risk values are converted to species status scores by subtracting the risk values from 1 and rescaling so a risk value of $0.75 $ receives a score of zero.

From Halpern et al (2012):

The target for the Species sub-goal is to have all species at a risk status of Least Concern. We scaled the lower end of the biodiversity goal to be 0 when 75% species are extinct, a level comparable to the five documented mass extinctions and would constitute a catastrophic loss of biodiversity.

\[X_{SPP} = \frac{((1 - \bar{R}_{SPP}) - 0.25)}{(1 - 0.25)} * 100%\]

where:

  • \(X_{SPP}\) is Species goal status
  • \(\bar{R}_{SPP}\) is mean extinction risk for a region

Trend is calculated using time series of risk categories based on current and past assessments.

3 Updates from previous assessment

Added Casey Ohara’s personal common.R functions into the common_fxns.R file located in the ’_setup’ file for this goal. Additional year of data.


4 Data Sources

IUCN:

  • Reference:
  • Description: Shapefiles containing polygons of assessed species ranges; each shapefile represents all assessed species within a comprehensively-assessed (i.e. >90% assessed) taxonomic group.
  • Native data resolution: NA
  • Time range: NA
  • Format: Shapefile

5 Methods

There are several steps that need to be taken to get to this point in the data prep.

Here is an overview of the organization of files and data that are run prior to this:

5.0.1 Code

5.0.1.1 Run this first! Setup directory: spp_risk_dists/_setup

In this directory are a sequence of files used to generate the bits and pieces that are later assembled into the rasters of biodiversity risk.

.Rmd files are sequenced with a prefix number (and letter) to indicate the order of operations. Briefly:

  1. Pull information from the IUCN Red List API to determine an overall species list, habitat information, and current risk (conservation status).
  2. Pull information from API on risk from regional assessments; also recode the regions according to Marine Ecoregions (Spalding et al, 2007) for later spatialization.
  3. Pull historical assessment information from API for possible trend analysis. Note that this did not make it into the final draft of the manuscript.
  4. Set up spatial layers in Gall-Peters, 100 km2 cells. Layers include:
    • cell ID (cells are sequentially numbered for combining with tabular data)
    • ocean area
    • marine protected area (classification, year of protection, proportion of protection)
    • Exclusive Economic Zones (EEZ) and FAO fishing regions
    • Marine Ecoregions of the World
    • bathymetry
    • NOTE: these layers are all saved in the spp_risk_dists/_spatial directory.
  5. Convert species range maps to rasters. (skip 5a .Rmd because all that is doing is checking the non-comprehensive data, which is not used for OHI and was not downloaded for the subgoal.)
    • For maps provided directly by IUCN, aggregate into multispecies files based on family. There is some cleaning done at this stage to fix problematic extents and attributes.
    • From the list of all available maps, generate a master list of all mapped, assessed species for inclusion in the study.
    • Rasterize each species to a .csv that includes cell ID and presence. A .csv format was used for file size and ease of reading and binding into dataframes.
  6. Aggregate individual species ranges into larger taxonomic groups, and summarize key variables (mean risk, variance of risk, number of species, etc) by group.
    • Technically this is not necessary but makes it easier to quality check the process along the way, and supports mapping at the level of taxonomic group rather than the entire species list level.
    • This process is done twice: once for uniform weighting and once for range-rarity weighting. Resulting files are saved separately.

5.0.1.2 Then run this! Root directory: spp_risk_dists

At this level there are several scripts, prefixed 1x_biodiversity_maps, that collate the various taxonomic group level files (generated in setup part 6) and summarize to the global level.

  • Note each creates a specific aggregation - comprehensively assessed species vs all available species; uniform vs range-rarity weighting.
  • The rasters generated in these scripts are saved in the _output folder.

5.0.2 Data and output files

The spp_risk_dists/_data folder contains tabular data about IUCN species used throughout the processing of this analysis. These files are generated by scripts in the setup directory.

The spp_risk_dists/_spatial folder contains general spatial data generated and/or used in the setup scripts. These include:

  • rasters for cell ID, EEZ ID, marine ecoregion ID, ocean area, and bathymetry masks.
  • tabular data of region names and lookups for IUCN regional assessment to marine ecoregion.
  • tabular data of marine protected area level/year/coverage to cell ID.
  • shapefiles used for map plotting from Natural Earth.

The spp_risk_dists/_output folder contains the rasters of biodiversity risk, species richness, variance of risk, etc generated from the scripts in the base directory.


5.1 Compare all vs. comprehensively assessed species

In the past, we have used all species with IUCN risk assessments to calculate the species subgoal. However, some of Casey’s work suggests it is better to use the taxa groups that have been comprehensively assessed by IUCN (> 90% of species assessed). The general concern is that IUCN tends to oversample species in the Atlantic portion of the ocean, relative to other regions. This is indicated by the larger number of species with IUCN status in this region. However, the Atlantic falls in line with the other regions when looking at the comprehensively assessed species.

5.2 SPP: Status

5.2.2 Status: estimate for previous years

We use the trend data to estimate risk values for previous years (vs. using the same values for all assessment years). The change in species status across years is based on a linear model.

Trend is calculated using the same method as the risk calculation. For each cell, we multiply the average species trend by the number of species in order to weight each cell’s contribution by the number of species in the cell. We sum these values for each OHI region and calculate for each region: (average species trend * number species)/number of species

5.2.4 Status: Converting regional mean risk to status

We rescale the data so a risk factor of 0.75 is equal to zero.

5.2.5 Status: Gapfill missing regions

Region 232 (Bosnia) does not have a value, which is not surprising because their coast is super small and results are erratic for this region. We gapfill with surrounding regions.

##      rgn_id           year        spp_status    
##  Min.   :  1.0   Min.   :2012   Min.   :0.6171  
##  1st Qu.: 58.0   1st Qu.:2014   1st Qu.:0.7697  
##  Median :116.0   Median :2016   Median :0.8055  
##  Mean   :117.2   Mean   :2016   Mean   :0.8022  
##  3rd Qu.:176.0   3rd Qu.:2017   3rd Qu.:0.8431  
##  Max.   :250.0   Max.   :2019   Max.   :0.8964  
##                  NA's   :1      NA's   :1
##   rgn_id year spp_status
## 1    232   NA         NA

5.2.6 Status: Final formatting for ohi-global

## [1] 1760    3
##      rgn_id            year          score       
##  Min.   :  1.00   Min.   :2012   Min.   :0.6171  
##  1st Qu.: 58.75   1st Qu.:2014   1st Qu.:0.7693  
##  Median :116.50   Median :2016   Median :0.8051  
##  Mean   :117.64   Mean   :2016   Mean   :0.8019  
##  3rd Qu.:176.25   3rd Qu.:2017   3rd Qu.:0.8429  
##  Max.   :250.00   Max.   :2019   Max.   :0.8964

5.3 SPP: Trend

5.3.2 Trend: Gapfilling missing data

Check there are data for every region. Region 232 (Bosnia) does not have a value which is not surprising because their coast is super small and results are erratic for this region. We estimate this using the mean of the 2 surrounding regions.

##      rgn_id         mean_trend         spp_trend_adj       
##  Min.   :  1.00   Min.   :-0.0016678   Min.   :-0.0036924  
##  1st Qu.: 58.75   1st Qu.: 0.0003407   1st Qu.:-0.0020450  
##  Median :116.50   Median : 0.0009818   Median :-0.0013091  
##  Mean   :117.64   Mean   : 0.0008893   Mean   :-0.0011858  
##  3rd Qu.:176.25   3rd Qu.: 0.0015338   3rd Qu.:-0.0004542  
##  Max.   :250.00   Max.   : 0.0027693   Max.   : 0.0022237  
##                   NA's   :1            NA's   :1           
##      score         trend_score       
##  Min.   :0.6171   Min.   :-0.026373  
##  1st Qu.:0.7644   1st Qu.:-0.012764  
##  Median :0.8015   Median :-0.007905  
##  Mean   :0.7981   Mean   :-0.007624  
##  3rd Qu.:0.8402   3rd Qu.:-0.002758  
##  Max.   :0.8956   Max.   : 0.012554  
##  NA's   :1        NA's   :1
##   rgn_id mean_trend spp_trend_adj score trend_score
## 1    232         NA            NA    NA          NA

5.4 Trend: Final formatting for ohi-global

## [1] 220   2
##      rgn_id           score          
##  Min.   :  1.00   Min.   :-0.026373  
##  1st Qu.: 58.75   1st Qu.:-0.012748  
##  Median :116.50   Median :-0.007927  
##  Mean   :117.64   Mean   :-0.007647  
##  3rd Qu.:176.25   3rd Qu.:-0.002763  
##  Max.   :250.00   Max.   : 0.012554

5.4.1 Trend: Compare to last year

We use a very different approach for calculating trend this year. Previously we used proxy data rather than actual change in IUCN status over time. Our previous method overestimated the magnitude of the trend. It is not surprising there is poor correlation with trend estimates in previous years, but it is reassuring the the values mainly fall in the same quadrant.

5.5 Resilience data

We use species condition data as a resilience measure as well. We also calculate species condition at 3nm of shoreline, because for some goals, nearshore species condition is the relevant metric.

5.5.3 Resilience: estimate for previous years

We use the trend data to estimate risk values for previous years (vs. using the same values for all assessment years). The change in species status across years is based on a linear model.

Trend is calculated using the same method as the risk calculation. For each cell, we multiply the average species trend by the number of species in order to weight each cell’s contribution by the number of species in the cell. We sum these values for each OHI region and calculate for each region: (average species trend * number species)/number of species

5.5.6 Resilience: Converting regional mean risk to status

We rescale the data so a risk factor of 0.75 is equal to zero.

5.5.7 Resilience: Gapfill missing regions

Region 19 (Tuvalu) does not have a value. This is an island. We gapfill with the value from the entire eez.

##      rgn_id            year        spp_status    
##  Min.   :  1.00   Min.   :2012   Min.   :0.7223  
##  1st Qu.: 58.75   1st Qu.:2014   1st Qu.:0.8174  
##  Median :116.50   Median :2016   Median :0.8671  
##  Mean   :117.64   Mean   :2016   Mean   :0.8524  
##  3rd Qu.:176.25   3rd Qu.:2017   3rd Qu.:0.8918  
##  Max.   :250.00   Max.   :2019   Max.   :0.9217  
##                                  NA's   :8
##   rgn_id year spp_status
## 1     19 2012        NaN
## 2     19 2013        NaN
## 3     19 2014        NaN
## 4     19 2015        NaN
## 5     19 2016        NaN
## 6     19 2017        NaN
## 7     19 2018        NaN
## 8     19 2019        NaN
##      rgn_id            year        spp_status    
##  Min.   :  1.00   Min.   :2012   Min.   :0.7223  
##  1st Qu.: 58.75   1st Qu.:2014   1st Qu.:0.8171  
##  Median :116.50   Median :2016   Median :0.8665  
##  Mean   :117.64   Mean   :2016   Mean   :0.8519  
##  3rd Qu.:176.25   3rd Qu.:2017   3rd Qu.:0.8916  
##  Max.   :250.00   Max.   :2019   Max.   :0.9217

5.5.8 Resilience: Final formatting for ohi-global

## [1] 1760    3
##      rgn_id            year          score       
##  Min.   :  1.00   Min.   :2012   Min.   :0.7223  
##  1st Qu.: 58.75   1st Qu.:2014   1st Qu.:0.8171  
##  Median :116.50   Median :2016   Median :0.8665  
##  Mean   :117.64   Mean   :2016   Mean   :0.8519  
##  3rd Qu.:176.25   3rd Qu.:2017   3rd Qu.:0.8916  
##  Max.   :250.00   Max.   :2019   Max.   :0.9217