-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cmorizer for NOAA-CIRES-20CR v3 reanalysis (clt, clwvi, hus, prw, rlu…
…t, rlutcs, rsut, rsutcs) (#3137) Co-authored-by: Rémi Kazeroni <[email protected]>
- Loading branch information
Showing
11 changed files
with
202 additions
and
14 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
4 changes: 2 additions & 2 deletions
4
...zers/data/cmor_config/NOAA-CIRES-20CR.yml → ...s/data/cmor_config/NOAA-CIRES-20CR-V2.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
56 changes: 56 additions & 0 deletions
56
esmvaltool/cmorizers/data/cmor_config/NOAA-CIRES-20CR-V3.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,56 @@ | ||
--- | ||
# Global attributes of NetCDF file | ||
attributes: | ||
dataset_id: NOAA-CIRES-20CR-V3 | ||
project_id: OBS6 | ||
tier: 2 | ||
version: 'v3' | ||
modeling_realm: reanaly | ||
source: 'https://psl.noaa.gov/data/gridded/data.20thC_ReanV3.html' | ||
reference: 'noaa-cires-20cr-v3' | ||
comment: | | ||
'' | ||
# Variables to CMORize | ||
variables: | ||
# monthly frequency | ||
clt_month: | ||
short_name: clt | ||
mip: Amon | ||
raw: tcdc | ||
file: 'tcdc.eatm.mon.mean.nc' | ||
clwvi_month: | ||
short_name: clwvi | ||
mip: Amon | ||
raw: cldwtr | ||
file: 'cldwtr.eatm.mon.mean.nc' | ||
prw_month: | ||
short_name: prw | ||
mip: Amon | ||
raw: pr_wtr | ||
file: 'pr_wtr.eatm.mon.mean.nc' | ||
hus_month: | ||
short_name: hus | ||
mip: Amon | ||
raw: shum | ||
file: 'shum.mon.mean.nc' | ||
rlut_month: | ||
short_name: rlut | ||
mip: Amon | ||
raw: ulwrf | ||
file: 'ulwrf.ntat.mon.mean.nc' | ||
rsut_month: | ||
short_name: rsut | ||
mip: Amon | ||
raw: uswrf | ||
file: 'uswrf.ntat.mon.mean.nc' | ||
rlutcs_month: | ||
short_name: rlutcs | ||
mip: Amon | ||
raw: csulf | ||
file: 'csulf.ntat.mon.mean.nc' | ||
rsutcs_month: | ||
short_name: rsutcs | ||
mip: Amon | ||
raw: csusf | ||
file: 'csusf.ntat.mon.mean.nc' |
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
2 changes: 1 addition & 1 deletion
2
...a/downloaders/datasets/noaa_cires_20cr.py → ...ownloaders/datasets/noaa_cires_20cr_v2.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
53 changes: 53 additions & 0 deletions
53
esmvaltool/cmorizers/data/downloaders/datasets/noaa_cires_20cr_v3.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,53 @@ | ||
"""Script to download NOAA-CIRES-20CR-V3.""" | ||
import logging | ||
|
||
from esmvaltool.cmorizers.data.downloaders.ftp import FTPDownloader | ||
|
||
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 = FTPDownloader( | ||
config=config, | ||
server='ftp.cdc.noaa.gov', | ||
dataset=dataset, | ||
dataset_info=dataset_info, | ||
overwrite=overwrite, | ||
) | ||
downloader.connect() | ||
|
||
downloader.set_cwd("Datasets/20thC_ReanV3/Monthlies/") | ||
downloader.download_file("miscSI-MO/cldwtr.eatm.mon.mean.nc", | ||
sub_folder='surface') | ||
downloader.download_file("miscSI-MO/pr_wtr.eatm.mon.mean.nc", | ||
sub_folder='surface') | ||
downloader.download_file("prsSI-MO/shum.mon.mean.nc", | ||
sub_folder='pressure') | ||
downloader.download_file("miscMO/tcdc.eatm.mon.mean.nc", | ||
sub_folder='surface') | ||
downloader.download_file("ntatFlxSI-MO/ulwrf.ntat.mon.mean.nc", | ||
sub_folder='surface') | ||
downloader.download_file("ntatFlxSI-MO/uswrf.ntat.mon.mean.nc", | ||
sub_folder='surface') | ||
downloader.download_file("ntatFlxSI-MO/csulf.ntat.mon.mean.nc", | ||
sub_folder='surface') | ||
downloader.download_file("ntatFlxSI-MO/csusf.ntat.mon.mean.nc", | ||
sub_folder='surface') |
2 changes: 1 addition & 1 deletion
2
...ta/formatters/datasets/noaa_cires_20cr.py → ...formatters/datasets/noaa_cires_20cr_v2.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
32 changes: 32 additions & 0 deletions
32
esmvaltool/cmorizers/data/formatters/datasets/noaa_cires_20cr_v3.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,32 @@ | ||
"""ESMValTool CMORizer for NOAA-CIRES-20CR-V3 data. | ||
Tier | ||
Tier 2: other freely-available dataset. | ||
Source | ||
https://psl.noaa.gov/data/gridded/data.ncep.reanalysis2.html | ||
Last access | ||
20230327 | ||
Download and processing instructions | ||
To facilitate the download, the links to the ftp server are provided. | ||
ftp://ftp.cdc.noaa.gov/Datasets/20thC_ReanV3/Monthlies/ | ||
pr_wtr.eatm.mon.mean.nc | ||
cldwtr.eatm.mon.mean.nc | ||
tcdc.eatm.mon.mean.nc | ||
ulwrf.ntat.mon.mean.nc | ||
uswrf.ntat.mon.mean.nc | ||
csulf.ntat.mon.mean.nc | ||
csusf.ntat.mon.mean.nc | ||
shum.mon.mean.nc | ||
Caveats | ||
""" | ||
from .ncep_ncar_r1 import cmorization | ||
|
||
# The following line makes it clear that the above import is not an error | ||
cmorization |
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
10 changes: 6 additions & 4 deletions
10
esmvaltool/references/noaa-cires-20cr.bibtex → ...tool/references/noaa-cires-20cr-v2.bibtex
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
@article{noaa-cire-20cr, | ||
@article{noaa-cires-20cr-v2, | ||
doi = {10.1002/qj.776}, | ||
url = {https://doi.org/10.1002/qj.776}, | ||
publisher = {Royal Meteorological Society}, | ||
author = {Compo, G.P., Whitaker, J.S., Sardeshmukh, P.D., Matsui, N., Allan, R.J., Yin, X., Gleason, B.E., Vose, R.S., Rutledge, G., Bessemoulin, P., Brönnimann, S., Brunet, M., Crouthamel, R.I., Grant, A.N., Groisman, P.Y., Jones, P.D., Kruk, M.C., Kruger, A.C., Marshall, G.J., Maugeri, M., Mok, H.Y., Nordli, Ø., Ross, T.F., Trigo, R.M., Wang, X.L., Woodruff, S.D. and Worley, S.J.}, | ||
author = {Compo, G.P., Whitaker, J.S., Sardeshmukh, P.D., Matsui, N., Allan, R.J., Yin, X., Gleason, B.E., Vose, R.S., Rutledge, G., Bessemoulin, P., Brönnimann, S., Brunet, M., Crouthamel, R.I., Grant, A.N., Groisman, P.Y., Jones, P.D., Kruk, M.C., Kruger, A.C., Marshall, G.J., Maugeri, M., Mok, H.Y., Nordli, O., Ross, T.F., Trigo, R.M., Wang, X.L., Woodruff, S.D. and Worley, S.J.}, | ||
title = {The Twentieth Century Reanalysis Project}, | ||
year = {2011} | ||
year = {2011}, | ||
journal = {Quarterly J. Roy. Meteorol. Soc.} | ||
volume = {137}, | ||
number = {654}, | ||
pages = {1-28}, | ||
} |
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,11 @@ | ||
@article{noaa-cires-20cr-v3, | ||
journal = {Quarterly J. Roy. Meteorol. Soc.} | ||
author = {Slivinski, Laura C. and Compo, Gilbert P. and Whitaker, Jeffrey S. and Sardeshmukh, Prashant D. and Giese, Benjamin S. and McColl, Chesley and Allan, Rob and Yin, Xungang and Vose, Russell and Titchner, Holly and Kennedy, John and Spencer, Lawrence J. and Ashcroft, Linden and Brönnimann, Stefan and Brunet, Manola and Camuffo, Dario and Cornes, Richard and Cram, Thomas A. and Crouthamel, Richard and Domínguez-Castro, Fernando and Freeman, J. Eric and Gergis, Joëlle and Hawkins, Ed and Jones, Philip D. and Jourdain, Sylvie and Kaplan, Alexey and Kubota, Hisayuki and Blancq, Frank Le and Lee, Tsz-Cheung and Lorrey, Andrew and Luterbacher, Jürg and Maugeri, Maurizio and Mock, Cary J. and Moore, G.W. Kent and Przybylak, Rajmund and Pudmenzky, Christa and Reason, Chris and Slonosky, Victoria C. and Smith, Catherine A. and Tinz, Birger and Trewin, Blair and Valente, Maria Antónia and Wang, Xiaolan L. and Wilkinson, Clive and Wood, Kevin and Wyszynski, Przemysxslaw}, | ||
title = {Towards a more reliable historical reanalysis: Improvements for version 3 of the Twentieth Century Reanalysis system}, | ||
volume = {145}, | ||
number = {724}, | ||
pages = {2876-2908}, | ||
doi = {https://doi.org/10.1002/qj.3598}, | ||
url = {https://rmets.onlinelibrary.wiley.com/doi/abs/10.1002/qj.3598}, | ||
year = {2019} | ||
} |