cdsapi


Namecdsapi JSON
Version 0.7.5 PyPI version JSON
download
home_pagehttps://github.com/ecmwf/cdsapi
SummaryClimate Data Store API
upload_time2024-11-28 15:08:21
maintainerNone
docs_urlNone
authorECMWF
requires_python>=3.8
licenseApache 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            cdsapi
------

For a more detailed description on how to use the cdsapi, please visit: https://cds.climate.copernicus.eu/how-to-api


Install
-------

Install via `pip` with::

    $ pip install cdsapi


Configure
---------

Get your Personal Access Token from your profile on the CDS portal at the address: https://cds.climate.copernicus.eu/profile
and write it into the configuration file, so it looks like::

    $ cat ~/.cdsapirc
    url: https://cds.climate.copernicus.eu/api
    key: <PERSONAL-ACCESS-TOKEN>

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": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "ECMWF",
    "author_email": "software.support@ecmwf.int",
    "download_url": "https://files.pythonhosted.org/packages/3b/62/81b38105ef75486308179d510360c1aa251ce0b7d17fe88c0e1de05c6c94/cdsapi-0.7.5.tar.gz",
    "platform": null,
    "description": "cdsapi\n------\n\nFor a more detailed description on how to use the cdsapi, please visit: https://cds.climate.copernicus.eu/how-to-api\n\n\nInstall\n-------\n\nInstall via `pip` with::\n\n    $ pip install cdsapi\n\n\nConfigure\n---------\n\nGet your Personal Access Token from your profile on the CDS portal at the address: https://cds.climate.copernicus.eu/profile\nand write it into the configuration file, so it looks like::\n\n    $ cat ~/.cdsapirc\n    url: https://cds.climate.copernicus.eu/api\n    key: <PERSONAL-ACCESS-TOKEN>\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.5",
    "project_urls": {
        "Homepage": "https://github.com/ecmwf/cdsapi"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4ec449f01f1382d449581d5d3db0fa49ccc23a1b4f91d615108b631c7cff40cd",
                "md5": "dd6b71f1e3e58d1d97b4b6a48c82a527",
                "sha256": "8586b837aea89ceeae379b388fbb0ace0a19b94b221f731c65632417007f69fb"
            },
            "downloads": -1,
            "filename": "cdsapi-0.7.5-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dd6b71f1e3e58d1d97b4b6a48c82a527",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.8",
            "size": 12201,
            "upload_time": "2024-11-28T15:08:19",
            "upload_time_iso_8601": "2024-11-28T15:08:19.981971Z",
            "url": "https://files.pythonhosted.org/packages/4e/c4/49f01f1382d449581d5d3db0fa49ccc23a1b4f91d615108b631c7cff40cd/cdsapi-0.7.5-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b6281b38105ef75486308179d510360c1aa251ce0b7d17fe88c0e1de05c6c94",
                "md5": "4d80eb0f966ac1f4c3f4c8979efdb4f0",
                "sha256": "55221c573b8cefe83cc0bfe01a3d31213c82bf9acce70455350dd24b8095c23a"
            },
            "downloads": -1,
            "filename": "cdsapi-0.7.5.tar.gz",
            "has_sig": false,
            "md5_digest": "4d80eb0f966ac1f4c3f4c8979efdb4f0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 13188,
            "upload_time": "2024-11-28T15:08:21",
            "upload_time_iso_8601": "2024-11-28T15:08:21.593268Z",
            "url": "https://files.pythonhosted.org/packages/3b/62/81b38105ef75486308179d510360c1aa251ce0b7d17fe88c0e1de05c6c94/cdsapi-0.7.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-28 15:08:21",
    "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.67527s