climetlab-maelstrom-downscaling


Nameclimetlab-maelstrom-downscaling JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://git.ecmwf.int/projects/MLFET/repos/maelstrom-downscaling-ap5/
SummaryA dataset plugin for climetlab for the dataset maelstrom-downscaling.
upload_time2023-10-19 16:03:25
maintainer
docs_urlNone
authorMichael Langguth, Bing Gong
requires_python
licenseApache License Version 2.0
keywords meteorology
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # maelstrom-downscaling-ap5

A <a href="https://climetlab.readthedocs.io">CliMetLab </a> dataset plugin for the datasets
used in application of the <a href="https://maelstrom-eurohpc.eu/">MAELSTROM project</a>.

Features
--------

This README provides a brief description of the provided datasets for statistical downscaling of
meteorological fields, the target of 
<a href="https://www.maelstrom-eurohpc.eu/article?topic=improved-local-weather-predictions">application 5 (AP5) in scope of MAELSTROM</a>.
Two different datasets, named Tier-1 and Tier-2 in the following, can be downloaded from the <a href="https://aws.amazon.com/s3/?nc1=h_ls">AWS s3-bucket</a>,
provided by ECMWF, with this `CliMetLab` plugin. Both datasets are distributed under the 
<a href="https://git.ecmwf.int/projects/MLFET/repos/maelstrom-downscaling-ap5/browse/LICENSE">Apache License, version 2.0 </a>
and thus are open-access.  

## Using climetlab to access the data

The `CliMetLab` python package allows easy access to the data with a few lines of code. <br>
The following examples demonstrate how to obtain the two provided datasets. 
A more detailed description of both datasets is provided afterwards.

### Download the Tier-1 data
The training data of the Tier-1 dataset can be downloaded as follows:
```
!pip install climetlab climetlab_maelstrom_downscaling
import climetlab as cml
ds = cml.load_dataset("maelstrom-downscaling", dataset="training")
ds.to_xarray()
```
By changing the `dataset`-argument to `"validation"` and `"testing"`, the validation and testing data can be retrieved.
Furthermore, an augmented variant of the dataset is available which can be downloaded by adding 
a `_augmented`-suffix to the `dataset`-arguments.

### Download the Tier-2 data
The Tier-2 dataset can be downloaded by replacing the value of the first argument of `cml.load_dataset`. 
The following code-snippet exemplary downloads the training dataset (about 45 GB!):
```commandline
ds = cml.load_dataset("maelstrom-downscaling-tier2", dataset="training")
```
Note that no augmented variant of the Tier-2 dataset is provided.

### Tutorial for the Tier-1 dataset

A tutorial is available in form of a <a href="https://git.ecmwf.int/projects/MLFET/repos/maelstrom-downscaling-ap5/browse/notebooks/demo_downscaling_dataset.ipynb">Jupyter Notebook</a>.
In this Jupyter Notebook, the Tier-1 dataset is used to train a simple U-Net for downscaling adapted from [1].

## Dataset description

Within the <a href="https://maelstrom-eurohpc.eu/">MAELSTROM</a> project, two different datasets are provided that are 
used to construct statistical downscaling tasks with deep neural networks.
The first dataset, the Tier-1 dataset, serves as the starting point and provides the data for a pure downscaling task 
similar to the super-resolution task in computer vision. <br>
The Tier-2 dataset provides the data for a real downscaling task in meteorology where the super-resolution task 
is complemented by bias correction. <br>
Both datasets will be described in more detail in the following.

### The Tier-1 dataset
The Tier-1 dataset contains 2m temperature and surface elevation data obtained from the IFS HRES model at its initialization times 00 and 12 UTC between 2016 and 2020.
The data is temporally sliced to months of the summer half of the year (defined between April and September inclusively). 
Spatially, the data is limited to a domain covering Central Europe including complex topography with 128x96 grid points in zonal and meridional direction.
For convenience, the data has been remapped onto a regular spherical grid with a spacing (dx) of 0.1°.
<br><br>
Since only one set of model data is used, the Tier-1 dataset constitutes an artificial downscaling task
where the input data is coarsened and the downscaling model is trained to revert this coarsening process.
This makes the downscaling task very similar to the super-resolution task in computer vision,
since no systematic bias has to be removed between the input and the target data. Note that this (simplified)
downscaling task has been subject to other studies on statistical downscaling with deep neural networks as well,
e.g. [1] or [2].

For the target variable of the Tier 1-dataset, the 2m temperature `t2m_tar`, the coarsened input data has undergone the
following preprocessing chain:<br>
The first step comprises a conservative remapping onto a coarse grid with dx = 0.8°. This step effectively removes fine-grained information from 
the data. Second, the data is interpolated back (naively) onto the high resolved grid (with dx = 0.1°) via bi-linear interpolation. Note that this step does 
*not* recover the information loss from step 1. Finally, to obtain energetic consistency, all calculation have been performed using the dry static energy 
which is a pure function of the temperature and the elevation.<br><br>

The dataset is thereby subdivided into subsets for training, validation and testing. The former comprises the data between 2016 and 2019,
while the two latter are made of monthly data from 2020. 

### The Tier-2 dataset

The Tier-2 dataset provides data for a real downscaling task where coarse-grained ERA5 reanalysis data [3]
are downscaled onto the high-resolved grid of the COSMO REA6 dataset [4]. 
Since data from two different models are now used, where COSMO REA6 provides added value
over complex terrain due to its higher spatial resolution, the downscaling task is now twofold:
The data has to be super-resolved and bias-corrected.

Here, we still target the 2m temperature as with the Tier-1 dataset, but include more predictor variables:
- 2m temperature
- 850 hPa- and 925 hPa temperature
- surface latent and sensible heat fluxes
- 10m horizontal wind (u,v)
- boundary layer height

The surface topography from the ERA5 and the COSMO REA6 datasets are also included as static predictor variables.

As a necessary prerequisite, the underlying grid of both reanalysis datasets needed to be merged.
Here, we have remapped the ERA5 data onto the rotated pole grid deployed by the COSMO model [5].
With a grid spacing of 0.275° in rotated coordinates, the spatial resolution of the ERA 5 data is 
five times coarser than the target data, the COSMO REA6-data (dx=0.055°). 
Similar to the Tier-1 dataset, the ERA5-data is bi-linearly interpolated onto the high resolved target 
grid to serve as input for the neural networks for downscaling.

Currently, the target domain of the Tier-2 dataset comprises 120x96 grid points (with dx=0.055°) 
covering large parts of Central Europe to include complex terrain of the Alps and the German low mountain range.
Hourly data is provided for the years between 2006 and 2018. By default, the years 2006-2016 constitute the 
training dataset, while 2017 and 2018 are used for validation and testing, respectively.

## References
**[1]** Sha, Yingkai, et al. "Deep-learning-based gridded downscaling of surface meteorological variables in complex
terrain. Part I: Daily maximum and minimum 2-m temperature."
Journal of Applied Meteorology and Climatology 59.12 (2020): 2057-2073. 
<a href="https://doi.org/10.1175/JAMC-D-20-0057.1"> DOI</a>.<br>
**[2]** Leinonen, Jussi et al., "Stochastic Super-Resolution for Downscaling Time-Evolving Atmospheric Fields
With a Generative Adversarial Network." IEEE Transactions on Geoscience and Remote Sensing 59.9 (2021): 7211-7223 
<a href="https://doi.org/10.1109/TGRS.2020.3032790">DOI</a>.<br>
**[3]** Hersbach, Hans, et al. "The ERA5 global reanalysis." Quarterly Journal of the Royal Meteorological Society 
146.730 (2020): 1999-2049. 
<a href="https://doi.org/10.1002/qj.3803">DOI</a>.<br>
**[4]** Bollmeyer, Christoph, et al. "Towards a high‐resolution regional reanalysis for the European CORDEX domain."
Quarterly Journal of the Royal Meteorological Society 141.686 (2015): 1-15.
<a href="https://doi.org/10.1002/qj.2486">DOI</a>.<br>
**[5]** Hans-Ertel-Center for Weather Research - Climate Monitoring and Diagnostics.
COSMO Regional Reanalysis - COSMO-REA6. 
<a href="https://reanalysis.meteo.uni-bonn.de/?COSMO-REA6">Link</a>.<br>


            

Raw data

            {
    "_id": null,
    "home_page": "https://git.ecmwf.int/projects/MLFET/repos/maelstrom-downscaling-ap5/",
    "name": "climetlab-maelstrom-downscaling",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "meteorology",
    "author": "Michael Langguth, Bing Gong",
    "author_email": "m.langguth@fz-juelich.de",
    "download_url": "https://files.pythonhosted.org/packages/21/ed/4ade880f819840b7a5b8f1e29ac2e71182ffc8aab371325d6701589b0031/climetlab_maelstrom_downscaling-0.3.1.tar.gz",
    "platform": null,
    "description": "\ufeff# maelstrom-downscaling-ap5\n\nA <a href=\"https://climetlab.readthedocs.io\">CliMetLab </a> dataset plugin for the datasets\nused in application of the <a href=\"https://maelstrom-eurohpc.eu/\">MAELSTROM project</a>.\n\nFeatures\n--------\n\nThis README provides a brief description of the provided datasets for statistical downscaling of\nmeteorological fields, the target of \n<a href=\"https://www.maelstrom-eurohpc.eu/article?topic=improved-local-weather-predictions\">application 5 (AP5) in scope of MAELSTROM</a>.\nTwo different datasets, named Tier-1 and Tier-2 in the following, can be downloaded from the <a href=\"https://aws.amazon.com/s3/?nc1=h_ls\">AWS s3-bucket</a>,\nprovided by ECMWF, with this `CliMetLab` plugin. Both datasets are distributed under the \n<a href=\"https://git.ecmwf.int/projects/MLFET/repos/maelstrom-downscaling-ap5/browse/LICENSE\">Apache License, version 2.0 </a>\nand thus are open-access.  \n\n## Using climetlab to access the data\n\nThe `CliMetLab` python package allows easy access to the data with a few lines of code. <br>\nThe following examples demonstrate how to obtain the two provided datasets. \nA more detailed description of both datasets is provided afterwards.\n\n### Download the Tier-1 data\nThe training data of the Tier-1 dataset can be downloaded as follows:\n```\n!pip install climetlab climetlab_maelstrom_downscaling\nimport climetlab as cml\nds = cml.load_dataset(\"maelstrom-downscaling\", dataset=\"training\")\nds.to_xarray()\n```\nBy changing the `dataset`-argument to `\"validation\"` and `\"testing\"`, the validation and testing data can be retrieved.\nFurthermore, an augmented variant of the dataset is available which can be downloaded by adding \na `_augmented`-suffix to the `dataset`-arguments.\n\n### Download the Tier-2 data\nThe Tier-2 dataset can be downloaded by replacing the value of the first argument of `cml.load_dataset`. \nThe following code-snippet exemplary downloads the training dataset (about 45 GB!):\n```commandline\nds = cml.load_dataset(\"maelstrom-downscaling-tier2\", dataset=\"training\")\n```\nNote that no augmented variant of the Tier-2 dataset is provided.\n\n### Tutorial for the Tier-1 dataset\n\nA tutorial is available in form of a <a href=\"https://git.ecmwf.int/projects/MLFET/repos/maelstrom-downscaling-ap5/browse/notebooks/demo_downscaling_dataset.ipynb\">Jupyter Notebook</a>.\nIn this Jupyter Notebook, the Tier-1 dataset is used to train a simple U-Net for downscaling adapted from [1].\n\n## Dataset description\n\nWithin the <a href=\"https://maelstrom-eurohpc.eu/\">MAELSTROM</a> project, two different datasets are provided that are \nused to construct statistical downscaling tasks with deep neural networks.\nThe first dataset, the Tier-1 dataset, serves as the starting point and provides the data for a pure downscaling task \nsimilar to the super-resolution task in computer vision. <br>\nThe Tier-2 dataset provides the data for a real downscaling task in meteorology where the super-resolution task \nis complemented by bias correction. <br>\nBoth datasets will be described in more detail in the following.\n\n### The Tier-1 dataset\nThe Tier-1 dataset contains 2m temperature and surface elevation data obtained from the IFS HRES model at its initialization times 00 and 12 UTC between 2016 and 2020.\nThe data is temporally sliced to months of the summer half of the year (defined between April and September inclusively). \nSpatially, the data is limited to a domain covering Central Europe including complex topography with 128x96 grid points in zonal and meridional direction.\nFor convenience, the data has been remapped onto a regular spherical grid with a spacing (dx) of 0.1\u00b0.\n<br><br>\nSince only one set of model data is used, the Tier-1 dataset constitutes an artificial downscaling task\nwhere the input data is coarsened and the downscaling model is trained to revert this coarsening process.\nThis makes the downscaling task very similar to the super-resolution task in computer vision,\nsince no systematic bias has to be removed between the input and the target data. Note that this (simplified)\ndownscaling task has been subject to other studies on statistical downscaling with deep neural networks as well,\ne.g. [1] or [2].\n\nFor the target variable of the Tier 1-dataset, the 2m temperature `t2m_tar`, the coarsened input data has undergone the\nfollowing preprocessing chain:<br>\nThe first step comprises a conservative remapping onto a coarse grid with dx = 0.8\u00b0. This step effectively removes fine-grained information from \nthe data. Second, the data is interpolated back (naively) onto the high resolved grid (with dx = 0.1\u00b0) via bi-linear interpolation. Note that this step does \n*not* recover the information loss from step 1. Finally, to obtain energetic consistency, all calculation have been performed using the dry static energy \nwhich is a pure function of the temperature and the elevation.<br><br>\n\nThe dataset is thereby subdivided into subsets for training, validation and testing. The former comprises the data between 2016 and 2019,\nwhile the two latter are made of monthly data from 2020. \n\n### The Tier-2 dataset\n\nThe Tier-2 dataset provides data for a real downscaling task where coarse-grained ERA5 reanalysis data [3]\nare downscaled onto the high-resolved grid of the COSMO REA6 dataset [4]. \nSince data from two different models are now used, where COSMO REA6 provides added value\nover complex terrain due to its higher spatial resolution, the downscaling task is now twofold:\nThe data has to be super-resolved and bias-corrected.\n\nHere, we still target the 2m temperature as with the Tier-1 dataset, but include more predictor variables:\n- 2m temperature\n- 850 hPa- and 925 hPa temperature\n- surface latent and sensible heat fluxes\n- 10m horizontal wind (u,v)\n- boundary layer height\n\nThe surface topography from the ERA5 and the COSMO REA6 datasets are also included as static predictor variables.\n\nAs a necessary prerequisite, the underlying grid of both reanalysis datasets needed to be merged.\nHere, we have remapped the ERA5 data onto the rotated pole grid deployed by the COSMO model [5].\nWith a grid spacing of 0.275\u00b0 in rotated coordinates, the spatial resolution of the ERA 5 data is \nfive times coarser than the target data, the COSMO REA6-data (dx=0.055\u00b0). \nSimilar to the Tier-1 dataset, the ERA5-data is bi-linearly interpolated onto the high resolved target \ngrid to serve as input for the neural networks for downscaling.\n\nCurrently, the target domain of the Tier-2 dataset comprises 120x96 grid points (with dx=0.055\u00b0) \ncovering large parts of Central Europe to include complex terrain of the Alps and the German low mountain range.\nHourly data is provided for the years between 2006 and 2018. By default, the years 2006-2016 constitute the \ntraining dataset, while 2017 and 2018 are used for validation and testing, respectively.\n\n## References\n**[1]** Sha, Yingkai, et al. \"Deep-learning-based gridded downscaling of surface meteorological variables in complex\nterrain. Part I: Daily maximum and minimum 2-m temperature.\"\nJournal of Applied Meteorology and Climatology 59.12 (2020): 2057-2073. \n<a href=\"https://doi.org/10.1175/JAMC-D-20-0057.1\"> DOI</a>.<br>\n**[2]** Leinonen, Jussi et al., \"Stochastic Super-Resolution for Downscaling Time-Evolving Atmospheric Fields\nWith a Generative Adversarial Network.\" IEEE Transactions on Geoscience and Remote Sensing 59.9 (2021): 7211-7223 \n<a href=\"https://doi.org/10.1109/TGRS.2020.3032790\">DOI</a>.<br>\n**[3]** Hersbach, Hans, et al. \"The ERA5 global reanalysis.\" Quarterly Journal of the Royal Meteorological Society \n146.730 (2020): 1999-2049. \n<a href=\"https://doi.org/10.1002/qj.3803\">DOI</a>.<br>\n**[4]** Bollmeyer, Christoph, et al. \"Towards a high\u2010resolution regional reanalysis for the European CORDEX domain.\"\nQuarterly Journal of the Royal Meteorological Society 141.686 (2015): 1-15.\n<a href=\"https://doi.org/10.1002/qj.2486\">DOI</a>.<br>\n**[5]** Hans-Ertel-Center for Weather Research - Climate Monitoring and Diagnostics.\nCOSMO Regional Reanalysis - COSMO-REA6. \n<a href=\"https://reanalysis.meteo.uni-bonn.de/?COSMO-REA6\">Link</a>.<br>\n\n",
    "bugtrack_url": null,
    "license": "Apache License Version 2.0",
    "summary": "A dataset plugin for climetlab for the dataset maelstrom-downscaling.",
    "version": "0.3.1",
    "project_urls": {
        "Homepage": "https://git.ecmwf.int/projects/MLFET/repos/maelstrom-downscaling-ap5/"
    },
    "split_keywords": [
        "meteorology"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "490eda5c7056f23d8f8737c0c0dddf1d124e7e4b43a68607351d3ec2b4e1fb22",
                "md5": "6671962fc88a50742dd5bb6c135c5b8f",
                "sha256": "d6c94ee324edb52069787fa70d912f568027c1f8c71345fb17c10c1d04d6820a"
            },
            "downloads": -1,
            "filename": "climetlab_maelstrom_downscaling-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6671962fc88a50742dd5bb6c135c5b8f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 14385,
            "upload_time": "2023-10-19T16:03:24",
            "upload_time_iso_8601": "2023-10-19T16:03:24.281446Z",
            "url": "https://files.pythonhosted.org/packages/49/0e/da5c7056f23d8f8737c0c0dddf1d124e7e4b43a68607351d3ec2b4e1fb22/climetlab_maelstrom_downscaling-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "21ed4ade880f819840b7a5b8f1e29ac2e71182ffc8aab371325d6701589b0031",
                "md5": "372a6e6ff73c76e66483fe0840bc02b8",
                "sha256": "1653246fbb0f8b1042028507175d90e83fbf79c596d43978752d5e69b577e23e"
            },
            "downloads": -1,
            "filename": "climetlab_maelstrom_downscaling-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "372a6e6ff73c76e66483fe0840bc02b8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 33656,
            "upload_time": "2023-10-19T16:03:25",
            "upload_time_iso_8601": "2023-10-19T16:03:25.912757Z",
            "url": "https://files.pythonhosted.org/packages/21/ed/4ade880f819840b7a5b8f1e29ac2e71182ffc8aab371325d6701589b0031/climetlab_maelstrom_downscaling-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-19 16:03:25",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "climetlab-maelstrom-downscaling"
}
        
Elapsed time: 0.13497s