Published November 15, 2025 | Version v1
Software Open

Matlab code for P-cycle model

  • 1. ROR icon Xiamen University

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

Files

Files (18.5 kB)

Name Size Download all
md5:d07c93e0f9a12ce7146cd36cf4118f3f
67 Bytes Download
md5:a231b78267c0b307671b6adf2b41b51c
10.6 kB Download
md5:3c2e44c1da92ef6b7a89a7394f2fd612
2.8 kB Download
md5:2478945f2e83a1a4d2919316cb9f7b12
1.1 kB Download
md5:d2bff369e5ec2399b041052e262369c3
3.9 kB Download