cdsapi


Namecdsapi JSON
Version 0.7.0 PyPI version JSON
download
home_pagehttps://github.com/ecmwf/cdsapi
SummaryClimate Data Store API
upload_time2024-04-24 13:53:13
maintainerNone
docs_urlNone
authorECMWF
requires_pythonNone
licenseApache 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
Install
-------

Install via `pip` with::

    $ pip install cdsapi


Configure
---------

Get your user ID (UID) and API key from the CDS portal at the address https://cds.climate.copernicus.eu/user
and write it into the configuration file, so it looks like::

    $ cat ~/.cdsapirc
    url: https://cds.climate.copernicus.eu/api/v2
    key: <UID>:<API key>

Remember to agree to the Terms and Conditions of every dataset that you intend to download.


Test
----

Perform a small test retrieve of ERA5 data::

    $ python
    >>> import cdsapi
    >>> cds = cdsapi.Client()
    >>> cds.retrieve('reanalysis-era5-pressure-levels', {
               "variable": "temperature",
               "pressure_level": "1000",
               "product_type": "reanalysis",
               "date": "2017-12-01/2017-12-31",
               "time": "12:00",
               "format": "grib"
           }, 'download.grib')
    >>>


License
-------

Copyright 2018 - 2019 European Centre for Medium-Range Weather Forecasts (ECMWF)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

In applying this licence, ECMWF does not waive the privileges and immunities
granted to it by virtue of its status as an intergovernmental organisation nor
does it submit to any jurisdiction.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ecmwf/cdsapi",
    "name": "cdsapi",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "ECMWF",
    "author_email": "software.support@ecmwf.int",
    "download_url": "https://files.pythonhosted.org/packages/d9/ed/da9a16f5d9f7ea69819b31d044534b40ad8985a38c48807ffd0acc1e46dc/cdsapi-0.7.0.tar.gz",
    "platform": null,
    "description": "\nInstall\n-------\n\nInstall via `pip` with::\n\n    $ pip install cdsapi\n\n\nConfigure\n---------\n\nGet your user ID (UID) and API key from the CDS portal at the address https://cds.climate.copernicus.eu/user\nand write it into the configuration file, so it looks like::\n\n    $ cat ~/.cdsapirc\n    url: https://cds.climate.copernicus.eu/api/v2\n    key: <UID>:<API key>\n\nRemember to agree to the Terms and Conditions of every dataset that you intend to download.\n\n\nTest\n----\n\nPerform a small test retrieve of ERA5 data::\n\n    $ python\n    >>> import cdsapi\n    >>> cds = cdsapi.Client()\n    >>> cds.retrieve('reanalysis-era5-pressure-levels', {\n               \"variable\": \"temperature\",\n               \"pressure_level\": \"1000\",\n               \"product_type\": \"reanalysis\",\n               \"date\": \"2017-12-01/2017-12-31\",\n               \"time\": \"12:00\",\n               \"format\": \"grib\"\n           }, 'download.grib')\n    >>>\n\n\nLicense\n-------\n\nCopyright 2018 - 2019 European Centre for Medium-Range Weather Forecasts (ECMWF)\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nIn applying this licence, ECMWF does not waive the privileges and immunities\ngranted to it by virtue of its status as an intergovernmental organisation nor\ndoes it submit to any jurisdiction.\n",
    "bugtrack_url": null,
    "license": "Apache 2.0",
    "summary": "Climate Data Store API",
    "version": "0.7.0",
    "project_urls": {
        "Homepage": "https://github.com/ecmwf/cdsapi"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "57c022f3e6f329dd690cc403e21ec894231ffc668ca7925b62de99612530a0a4",
                "md5": "dfb2c1ea580e6043f1070ae72231a585",
                "sha256": "b78d871c13862095476986904e7d7224c2480a6670e1bfd46718e095eaaf9b19"
            },
            "downloads": -1,
            "filename": "cdsapi-0.7.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dfb2c1ea580e6043f1070ae72231a585",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 12140,
            "upload_time": "2024-04-24T13:53:10",
            "upload_time_iso_8601": "2024-04-24T13:53:10.495013Z",
            "url": "https://files.pythonhosted.org/packages/57/c0/22f3e6f329dd690cc403e21ec894231ffc668ca7925b62de99612530a0a4/cdsapi-0.7.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d9edda9a16f5d9f7ea69819b31d044534b40ad8985a38c48807ffd0acc1e46dc",
                "md5": "699597ac3f1cc3b0efa33d6551499f6d",
                "sha256": "293ba622f25a15c29c435763d0bbeff4c44d1ee71bc7df965e9d191160d39d59"
            },
            "downloads": -1,
            "filename": "cdsapi-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "699597ac3f1cc3b0efa33d6551499f6d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 13116,
            "upload_time": "2024-04-24T13:53:13",
            "upload_time_iso_8601": "2024-04-24T13:53:13.099385Z",
            "url": "https://files.pythonhosted.org/packages/d9/ed/da9a16f5d9f7ea69819b31d044534b40ad8985a38c48807ffd0acc1e46dc/cdsapi-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-24 13:53:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ecmwf",
    "github_project": "cdsapi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "cdsapi"
}
        
Elapsed time: 0.22521s