npp-product-comparison

MATLAB scripts to identify the optimal net primary production (NPP) model by comparing with in situ 14C data from time-series stations.

https://github.com/annarufas/npp-product-comparison

Science Score: 49.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: zenodo.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (13.2%) to scientific vocabulary

Keywords

esa matlab net-primary-production ocean-colour
Last synced: 6 months ago · JSON representation

Repository

MATLAB scripts to identify the optimal net primary production (NPP) model by comparing with in situ 14C data from time-series stations.

Basic Info
  • Host: GitHub
  • Owner: annarufas
  • License: mit
  • Language: MATLAB
  • Default Branch: master
  • Homepage:
  • Size: 397 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 2
Topics
esa matlab net-primary-production ocean-colour
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

DOI

Comparison of Net Primary Production (NPP) Models with In Situ Observations at four Data-Rich, Time-Series Locations

npp_annual_gapfilled Annual mean net primary production (NPP) for six different MODELS. Printed on top of each map is the globally integrated average values of NPP for each model.

This repository contains a collection of MATLAB scripts developed to evaluate and compare net primary production (NPP) models against in situ data. The scripts process, format and visualise freely-available NPP model-derived products for the global ocean and compare them with in situ oceanographic data from four time-series locations using the 14C technique, enabling the identification of the most optimal NPP model based on this comparison. The workflow addresses the often-overlooked task of systematically assessing multiple existing datasets used for forcing/calibrating/validating ocean biogeochemical models.

The five analysed NPP models include: - Vertically Generalized Production Model (VGPM). - Carbon-based Production Model (CbPM). - Carbon, Absorption, and Fluorescence Euphotic-resolving (CAFE) model. - ESA Biological Pump and Carbon Exchange Processes (BICEP) project model. - Carr (2002) model.

Requirements

  • Note: These instructions are designed and tested specifically for macOS. While they may work on other operating systems (e.g., Windows or Linux), you might need to adapt the installation code accordingly.*

To use the content of this repository, ensure you have the following. - MATLAB version R2021a or later installed. - Third-party functions downloaded from MATLAB'S File Exchange: brewermap and subaxis. Once downloaded, please place the functions under the ./resources/external/ directory.

Repository Structure

  • ./code/: contains the MATLAB scripts for analysing and visualising data (provided, see "MATLAB Scripts" section).
  • ./data/
    • ./raw/: raw NPP data, comprising models and in situ observations (partly provided, see "Obtaining Raw Data" section).
    • ./processed/: output data generated by the MATLAB scripts (partly provided, unless size limits restrictions).
    • ./resources/
    • ./external/: third-party resources for plotting and functions (see "Requirements" section).
    • ./internal/: custom MATLAB functions generated specifically for calculating and plotting (provided).
    • ./figures/: figures generated from processed data (provided).

Obtaining Raw Data

Raw NPP model-derived data products were obtained as .nc files from the repositories corresponding to the five models listed above. These raw files were then processed using scripts in this related repository (not included here due to size constraints). The processing resulted in the following six .mat files: - npp_vgpm_modis.mat - npp_cbpm_modis.mat - npp_cafe_modis.mat - npp_bicep.mat - npp_carr2002_seawifs_pathfinder_zeub97.mat - npp_carr2002_modis_pathfinder_zeuc02.mat

To proceed, place these generated files in the ./data/raw/ directory. Additionally, the ./data/raw/ directory contains: - In situ data, provided as an Excel file npp_c14.xls. - The file custom_mask_icefrac_cmems_chla_occci.mat, used to mask grid cells where NPP calculations are invalid. This mask considers both chlorophyll a presence and photosynthetically active radiation (PAR0) availability, ensuring biologically plausible outputs. It was generated using scripts in this related repository.

MATLAB Scripts

| Num| Script name | Script action | |----|-----------------------------------|--------------------------------------------------------------- | 1 | main.m | Main entry point for running the entire data processing and plotting pipeline | | 2 | calculateGloballyIntegratedNpp.m | Calculation of globally integrated NPP stocks | | 3 | fillGapsInSurfaceOceanForcing.m | Fills NaN gaps in data using a multi-step interpolation process and a mask created using chlorophyll a and light availability | | 4 | mapMonthlyNpp.m | Visualisation of monthly modelled NPP | | 5 | mapAnnualNpp.m | Visualisation of annual modelled NPP | | 6 | processInsituNpp.m | Processing of 14C in situ observations and monthly values | | 7 | extractLocalModelledNpp.m | Extraction of modelled NPP at study locations | | 8 | calculateMatchupStatistics.m | Calculation of matchup statistics | | 9 | plotBarChartInsituVsModelled.m | Bar chart comparison of observations-models |

Reproducibility

The provided scripts perform a matchup analysis using in situ data from the following four time-series study sites: - U.S. Joint Global Ocean Flux Study (JGOFS) Equatorial Pacific process study experimental site (EqPac), in the central equatorial Pacific upwelling system (0N, 140W). - Hawaii Ocean Time-series (HOT) station ALOHA, in the subtropical NE Pacific (22.5N, 158W). - Bermuda Atlantic Time-Series (BATS) study site, in the subtropical NW Atlantic (31.6N, 64.2W). - Ocean Station Papa (OSP), in the high-nutrient, low-chlorophyll region of the subpolar NE Pacific (50N, 145W).

Acknowledgments

This work was conducted as part of my ESA Living Planet Fellowship at the University of Oxford under the SLAM DUNK project.

Owner

  • Name: Anna Rufas
  • Login: annarufas
  • Kind: user
  • Location: Oxford
  • Company: University of Oxford

GitHub Events

Total
  • Create event: 2
  • Release event: 4
  • Issues event: 8
  • Push event: 8
  • Public event: 1
Last Year
  • Create event: 2
  • Release event: 4
  • Issues event: 8
  • Push event: 8
  • Public event: 1

Committers

Last synced: 9 months ago

All Time
  • Total Commits: 18
  • Total Committers: 1
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 18
  • Committers: 1
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
annarufas 1****s 18