A simple one-dimensional NPZD model with graphical user interface
Description
This github code is a simple, 1-dimensional NPZD model in Matlab
, based on Kuhn et al. (2015, doi.org/10.1016/j.pocean.2015.07.004), with a Graphical User Interface (GUI).
The model is representative of a location at 50 degree N in the North Atlantic Ocean and the mixed layer evolution from this location is imposed. The model is run for 2 years, but only the 2nd year is shown in the auto-generated plots. The satellite-observed surface phytoplankton evolution at this location is shown for comparison in the surface property plot.
The GUI is called from the Matlab command line as follows: >> GUI_NPZD
A window will pop up that allows the user to modify 4 parameters: the latitude of solar forcing, the initial nutrient concentration, the maximum phytoplankton growth rate, and the maximum zooplankton grazing rate. These parameters can be adjusted by using the sliders or typing new values directly into the corresponding editbox. If the value entered is outside the allowable range indicated by the slider, it will be reset to the corresponding allowable maximum or minimum.
The buttons below the four sliders allow the user to run the model or quit the GUI. The evolution of state variables at the surface layer will be written into a Matlab file along with essential meta-information.
The code is also used in the article "Ocean Biogeochemical Modelling" in Nature Review Methods Primers by Fennel et al. (2022).
Files
NPZD_model_code_description.txt
Files
(1.5 kB)
Name | Size | Download all |
---|---|---|
md5:92a474c86a076e278eb46e02ac9ea8f6
|
1.5 kB | Preview Download |
Additional details
Related works
- Is required by
- Journal article: 10.1038/s43586-022-00154-2 (DOI)
- Is supplement to
- Journal article: 10.1016/j.pocean.2015.07.004 (DOI)
- Is supplemented by
- Software: https://zenodo.org/badge/latestdoi/479505457 (URL)