Published November 15, 2025
| Version v1
Software
Open
Matlab code for P-cycle model
Description
# phosphorus-cycle
Matlab code for P-cycle model in "Surface Recycling vs Deep Export: Insights from Tracer‐Constrained Inverse Modeling of the Biological Carbon Pump" by Wu et al
optimization.m is the main driver
neglogpost.m computes the negative of the logarithm of the posterior pdf for the parameters conditioned on the DIP data
eqPcycle.m computes the equilibrium state of the P-cycle model as well as the 1st and 2nd derivaties of the equilibrium solution w.r.t. the model parameters
unitlity scripts:
mfactor.m Timothy A. Davis' LINFACTOR VERSION 1.1.0, Nov 1, 2007 Copyright 2007, Timothy A. Davis, University of Florida
d0.m makes a sparse diagonal matrix given a 3d field