Skip to content

Commit

Permalink
Merge pull request #6 from pmlmodelling/merge_from_public
Browse files Browse the repository at this point in the history
Merge from public
  • Loading branch information
glessin authored Jul 22, 2024
2 parents 48724b8 + 70cf437 commit 384950f
Show file tree
Hide file tree
Showing 52 changed files with 1,439 additions and 809 deletions.
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#### Description of Work

Fixes

#### Testing Instructions

1.
2.
3.

10 changes: 5 additions & 5 deletions .github/workflows/ersem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ jobs:
with:
python-version: '3.x'
- name: Installing GOTM-FABM-ERSEM dependences
run: ./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-dep-debian.sh
run: ./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-dep-debian.sh
- name: Building and installing GOTM-FABM-ERSEM
run: |
BRANCH=${{ github.head_ref }}
./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-build.sh -b $BRANCH
./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-build.sh -b $BRANCH -f '-DCMAKE_Fortran_FLAGS="-fcheck=all"'
- name: Running tutorial
run: |
./github-actions/gotm-fabm-ersem/gotm-tut-config-setup.sh
Expand All @@ -70,7 +70,7 @@ jobs:
- name: Building and installing FABM0d-GOTM-ERSEM
run: |
BRANCH=${{ github.head_ref }}
./github-actions/fabm0d-gotm-ersem/fabm0d-gotm-ersem-build.sh -b $BRANCH
./github-actions/fabm0d-gotm-ersem/fabm0d-gotm-ersem-build.sh -b $BRANCH -f '-DCMAKE_Fortran_FLAGS="-fcheck=all"'
- name: Running tutorial
run: |
./github-actions/fabm0d-gotm-ersem/aquarium-tut-config-setup.sh
Expand All @@ -90,11 +90,11 @@ jobs:
with:
python-version: '3.x'
- name: Installing GOTM-FABM-ERSEM dependences
run: ./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-dep-debian.sh
run: ./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-dep-debian.sh
- name: Building and installing GOTM-FABM-ERSEM
run: |
BRANCH=${{ github.head_ref }}
./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-build.sh -f "-DCMAKE_Fortran_FLAGS="-pg"" -b $BRANCH
./github-actions/gotm-fabm-ersem/gotm-fabm-ersem-build.sh -f "-DCMAKE_Fortran_FLAGS="-pg -fcheck=all"" -b $BRANCH
- name: Running config
run: |
./github-actions/gotm-fabm-ersem/gotm-profiling.sh
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ docs/source/module_index.rst

# the ERSEM setups repo should be cloned each time
docs/source/ersem-setups

# removing vscode files
.vscode
9 changes: 8 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
# Required
version: 2

# Set the OS, Python version and other tools you might need
build:
os: ubuntu-22.04
tools:
python: "3.8"

# Build documentation in the docs/ directory with Sphinx
sphinx:
builder: html
Expand All @@ -15,6 +21,7 @@ formats:
- pdf

python:
version: 3.8
install:
- requirements: docs/requirements.txt
- method: pip
path: .
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
![Tests](https://github.com/pmlmodelling/ersem/workflows/build-ersem/badge.svg)
![Tests](https://img.shields.io/github/actions/workflow/status/pmlmodelling/ersem/ersem.yml?label=tests&style=flat-square)
[![Documentation Status](https://readthedocs.org/projects/ersem/badge/?version=latest)](https://ersem.readthedocs.io/en/latest/?badge=latest)

# ERSEM

![ERSEM diagram](docs/images/ERSEM.png)

[ERSEM](http://ersem.com) is a marine ecosystem model. It describes the
biogeochemical cycling of carbon, nitrogen, phosphorus, silicon, oxygen and
iron through pelagic and benthic ecosystems.
[ERSEM](http://ersem.com) is a marine biogeochemical and ecosystem model. It describes the
cycling of carbon, nitrogen, phosphorus, silicon, oxygen and iron through
the lower trophic level pelagic and benthic ecosystems.

- **Installation Instructions:** conda: https://ersem.readthedocs.io/en/latest/tutorials/index.html#conda-installation, source: https://ersem.readthedocs.io/en/latest/developers/index.html
- **User Documentation & Example Usage:** https://ersem.readthedocs.io/en/latest/
- **Automated Tests:** Run via GitHub Actions https://github.com/pmlmodelling/ersem/actions
- **Acknowledgements:** https://ersem.readthedocs.io/en/latest/acknowledgements.html
- **License:** https://ersem.readthedocs.io/en/latest/license.html

# Support

We strongly encourage everyone using the ERSEM code to register as a user by filling a
[short registration form](https://forms.office.com/r/X0iXv8AvTC).
We’d love to get a better understanding of who is using the ERSEM code and for what
applications, as it will help us to provide the best support to the user community.
It will also allow you to receive information and news on the latest model developments.

# How to cite

If you would like to refer to ERSEM in publications, please cite:
To refer to ERSEM in publications, please cite:

Butenschön, M., Clark, J., Aldridge, J.N., Allen, J.I., Artioli, Y.,
Blackford, J., Bruggeman, J., Cazenave, P., Ciavatta, S., Kay, S., Lessin, G.,
Expand All @@ -27,9 +35,7 @@ biogeochemistry and the ecosystem dynamics of the lower trophic levels.
Geoscientific Model Development, 9(4), 1293–1339.
doi: [10.5194/gmd-9-1293-2016](https://doi.org/10.5194/gmd-9-1293-2016).

If you would like to refer to the ERSEM source code, you can do so by its Zenodo DOI:
To refer specifically to the ERSEM source code, you may use its Zenodo DOI:

[![DOI](https://zenodo.org/badge/302390544.svg)](https://zenodo.org/badge/latestdoi/302390544)

To refer to the ERSEM website, please use <http://ersem.com>.

Binary file added docs/images/C1D_PAPA_ERSEM_plots.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/N1_p_NEMO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/N3_n_NEMO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/O2_o_NEMO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/O3_c_NEMO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/P1_Chl_NEMO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/R6_c_NEMO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/pyfabm_fig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/sal_NEMO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/temp_NEMO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions docs/source/developers/gotm-dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ To install GOTM-FABM-ERSEM, we suggest you use the following script below
:linenos:


If you experience NetCDF issues when running ``make install``, see `tips
and tricks/troubleshooting <#tips-and-trickstroubleshooting>`__.
If you experience NetCDF issues when running ``make install``, see :ref:`trouble`.

Now you should have a GOTM executable with FABM and ERSEM support at
``~/local/gotm/bin/gotm``.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Welcome to ERSEM's documentation!
ERSEM tutorials <tutorials/index>
troubleshooting
developers/index
workflow
module_index
license
acknowledgements
support
references

95 changes: 47 additions & 48 deletions docs/source/model_info/description.rst
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
.. _description:

#################
ERSEM area models
ERSEM model domains
#################

ERSEM is used in a variety of different models, the table bellow outlines several
of these models.
ERSEM is used in a variety of geographical regions, coupled to different physical (hydrodynamic) models.
The table bellow outlines several of these setups.


+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| Area | Includes | Spatial Scale | Quality (data used) |
+ +----------+-----+-----------------------+----------+ +
| | Hydro | BGC | Domain | Res.(km) | |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| Water column (GOTM-ERSEM) | X | X | Any | N/A | 4,6,8,14,16,22 |
| | | | location | | |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| Global (NEMO) | X | X | Global | 111 | 8,11,19,20,21 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| North Atlantic (NEMO) | X | X | 205-BON | 28 | 8,11,19,20,21 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| North Atlantic (NEMO shelf) | X | X | 20N-80N | 7 | 8,11,19,20,21 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| Irish and Celtic Seas (FVCOM) | X | X | 41.8-56.8N9, .6-Z.SW | 3.5 | 7,23,24,25 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| NW European shelf (NEMO) | | X | 40N-6SN, ZOW-13E | 7 | 3,8,11,12,13,14,19 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| NW European shelf (POLCOMS) | X | X | 40N-6SN, 20W-13E | 10 | 3,8,9,10,11,12, |
| | | | | | 13,14,15,16,17,19 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| NW European shelf (POLCOMS | X | X | 40N-6S | 10 | 2,3,8,9,10,12,13, |
| + data assimilation) | | | N,ZOW-13E | | 14,15,17 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| AMM7NW European-Baltric-GCOMS | X | X | 46.4-63N, 17.SW-13E | 10 | 3,8,11,14,17,18 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| WEC | X | X | 41.5-50.9N, 7.6-1.2SW | 1.9 | 2,4,8,12,13,14 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
| WEC (data assimilation) | X | X | 41.5-50.9N, 7.6-1.2SW | 7 | 1,2,4,8,12,13,14 |
+-------------------------------+----------+-----+-----------------------+----------+---------------------+
+-------------------------------+---------------+-----------------------+----------+---------------------+
| Area | | Spatial Scale | Quality (data used) |
+ +---------------+-----------------------+----------+ +
| | | Domain | Res.(km) | |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| Water column (GOTM-ERSEM) | | Various | N/A | 4,6,8,14,16,22 |
| | | locations | | |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| Global (NEMO) | | Global | 111 | 8,11,19,20,21 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| North Atlantic (NEMO) | | 20N-8ON | 28 | 8,11,19,20,21 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| North Atlantic (NEMO shelf) | | 20N-80N | 7 | 8,11,19,20,21 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| Irish and Celtic Seas (FVCOM) | | 41.8-56.8N, 9.6-2.5W | 3.5 | 7,23,24,25 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| NW European shelf (NEMO) | | 40N-65N, 2OW-13E | 7 | 3,8,11,12,13,14,19 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| NW European shelf (POLCOMS) | | 40N-65N, 20W-13E | 10 | 3,8,9,10,11,12, |
| | | | | 13,14,15,16,17,19 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| NW European shelf (POLCOMS | | 40N-65N, 20w-13E | 10 | 2,3,8,9,10,12,13, |
| + data assimilation) | | | | 14,15,17 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| AMM7NW European-Baltic-GCOMS | | 46.4-63N, 17.5W-13E | 10 | 3,8,11,14,17,18 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| Western European Channel (WEC)| | 48.5-50.9N, 7.6-1.25W | 1.9 | 2,4,8,12,13,14 |
+-------------------------------+---------------+-----------------------+----------+---------------------+
| WEC (data assimilation) | | 48.5-50.9N, 7.6-1.25W | 7 | 1,2,4,8,12,13,14 |
+-------------------------------+---------------+-----------------------+----------+---------------------+


Key
Expand All @@ -46,36 +46,35 @@ Key
.. hlist::
:columns: 3

- 1. Glocolour ocean colour
- 1. GlobColour ocean colour
- 2. ESA CCI ocean colour
- 3. North Sea Project cru1ses
- 3. North Sea Project cruises
- 4. Western Channel Observatory
- 5. Tide sauses
- 5. Tide gauges
- 6. Smart Buoy data
- 7. NCEP reanalysis
- 8. World Ocean Atlas
- 9. ICES temperature andsalinity
- 9. ICES temperature and salinity
- 10. ICES nutrients and chlorophyll
- 11. IPCC climate forcing (HADGEMI,PSL, ECHAM)
- 11. IPCC climate forcing (HADGEM, IPSL, ECHAM)
- 12. EA riverine nutrients data
- 13. Europeanriver data
- 14. ECMWF reanalysis meteorolosv
- 15. DMIreanalysis meteorology
- 13. European river data
- 14. ECMWF reanalysis meteorology
- 15. DMI reanalysis meteorology
- 16. ESSC ocean reanalysis
- 17. GLORYS reanalysis
- 18. GLOBAL NEWS river data
- 19. GLODAP
- 20. DFS atmospheric reanalysis
- 21. GEM/GLORI river data
- 21. GEMS-GLORI river data
- 22. BATS data
- 23. HF Radar and CTD Data.
- 23. HF Radar and CTD Data
- 24. NTSLF data
- 25. CEH river discharge and temperature.
- 25. CEH river discharge and temperature


.. note::
The table of area models is not yet complete, please ERSEM's issue
tracking for updates.
The table of regional setups is not yet complete, please stay tuned for updates.

Existing uses:
~~~~~~~~~~~~~~
Expand All @@ -89,14 +88,14 @@ Existing uses:
- **Environmental change:** climate change impacts, ocean acidification,
multiple stressors, and sustainable fisheries.
- Run operationally by the UK Met Office to predict water quality.
- Estimation of the carbon budget of the UK shelf.
- Estimation of the carbon and nutrient budgets of the UK shelf.


Potential new uses:
~~~~~~~~~~~~~~~~~~~

- Understanding shelf seas carbon ("blue carbon") and nutrient budgets
{past and future climate).
(past and future climate).
- Expansion to represent biodiversity-relevant processes over a range
of spatial and temporal scales, and simulate changes in function in
the context of ecosystem services.
Expand Down
11 changes: 0 additions & 11 deletions docs/source/support.rst

This file was deleted.

1 change: 1 addition & 0 deletions docs/source/tutorials/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Here we describe several tutorials for the common use cases for ERSEM.
gotm
fvcom
nemo
nemo1d

.. _conda-install:

Expand Down
Loading

0 comments on commit 384950f

Please sign in to comment.