-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CMORizer for MOBO-DIC2004-2019 (#3297)
- Loading branch information
Showing
8 changed files
with
161 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
esmvaltool/cmorizers/data/cmor_config/MOBO-DIC2004-2019.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
# Common global attributes for Cmorizer output | ||
attributes: | ||
dataset_id: MOBO-DIC2004-2019 | ||
version: '2.3' | ||
tier: 2 | ||
modeling_realm: reanaly | ||
project_id: OBS6 | ||
source: 'https://www.nodc.noaa.gov/archive/arc0211/0277099/2.3/data/0-data/' | ||
reference: 'mobo_dic2004_2019' | ||
|
||
# Variables to cmorize | ||
variables: | ||
dissic: | ||
filename: MPI_MOBO-DIC_2004-2019_v2.nc | ||
mip: Omon | ||
raw_name: DIC | ||
raw_units: '1e-6 mol kg-1' | ||
comment: 'The original units of this variable are mumol/kg. To convert to the CMOR units mol/m3, we assume a constant sea water density of 1032 kg/m3, which is approximately the sea water density for T=4°C, salinity=35PSU, and p=100bar according to the UNESCO formula (UNESCO, 1981, Tenth report of the joint panel on oceanographic tables and standards, UNESCO Technical Papers in Marine Science, see https://www.wkcgroup.com/tools-room/seawater-density-calculator/ and https://link.springer.com/content/pdf/bbm:978-3-319-18908-6/1.pdf).' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
esmvaltool/cmorizers/data/downloaders/datasets/mobo_dic2004_2019.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
"""Script to download MOBO-DIC2004-2019.""" | ||
import logging | ||
|
||
from esmvaltool.cmorizers.data.downloaders.wget import WGetDownloader | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def download_dataset(config, dataset, dataset_info, start_date, end_date, | ||
overwrite): | ||
"""Download dataset. | ||
Parameters | ||
---------- | ||
config : dict | ||
ESMValTool's user configuration | ||
dataset : str | ||
Name of the dataset | ||
dataset_info : dict | ||
Dataset information from the datasets.yml file | ||
start_date : datetime | ||
Start of the interval to download | ||
end_date : datetime | ||
End of the interval to download | ||
overwrite : bool | ||
Overwrite already downloaded files | ||
""" | ||
downloader = WGetDownloader( | ||
config=config, | ||
dataset=dataset, | ||
dataset_info=dataset_info, | ||
overwrite=overwrite, | ||
) | ||
|
||
downloader.download_file( | ||
"https://www.nodc.noaa.gov/archive/arc0211/0277099/2.3/data/0-data/" | ||
"MPI_MOBO-DIC_2004-2019_v2.nc", | ||
wget_options=[], | ||
) |
17 changes: 17 additions & 0 deletions
17
esmvaltool/cmorizers/data/formatters/datasets/mobo_dic2004_2019.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
"""ESMValTool CMORizer for MOBO-DIC2004-2019 data. | ||
Tier | ||
Tier 2: other freely-available dataset. | ||
Source | ||
https://www.nodc.noaa.gov/archive/arc0211/0277099/2.3/data/0-data/ | ||
Last access | ||
20231009 | ||
Download and processing instructions | ||
Download the file MPI_MOBO-DIC_2004-2019_v2.nc | ||
""" | ||
|
||
from .mobo_dic_mpim import cmorization # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@article{mobo_dic2004_2019, | ||
doi = {10.1029/2022gb007677}, | ||
url = {https://doi.org/10.1029/2022gb007677}, | ||
year = {2023}, | ||
month = may, | ||
publisher = {American Geophysical Union ({AGU})}, | ||
volume = {37}, | ||
number = {5}, | ||
author = {L. Keppler and P. Landschützer and S. K. Lauvset and N. Gruber}, | ||
title = {Recent Trends and Variability in the Oceanic Storage of Dissolved Inorganic Carbon}, | ||
journal = {Global Biogeochemical Cycles} | ||
} |