Skip to main content

Auto-updater of data from the Climate Data Store

Project description

CDSupdate

CDSupdate is a Python package that automates the process of retrieving, processing, and managing climate data from the Climate Data Store (CDS) API. The tool generates daily climate data summaries, performs calculations to create custom variables such as relative humidity and heat index which serve as risk assessments, and organizes the data into a user-friendly format.

Installation

CDSupdate requires the following packages:

  • numpy
  • pandas
  • xarray
  • netCDF4
  • cftime
  • cdsapi
  • windows-curses (only for Microsoft Windows users)

From pip:

pip3 install CDSupdate

Or from source:

git clone https://github.com/yrobink/CDSupdate.git
cd CDSupdaye
pip3 install .

This adds the CDSupdate package in your python installation, and the command cdsupdate.

How to use ?

Start by read the documentation with:

cdsupdate --help

As example, to download the daily mean temperature over the North Atlantic (80W-50E,5N,72N) between 2019-11-09 and 2022-01-17 in the directory odir, just run:

cdsupdate --log info test.log --period 2019-11-09/2022-01-17 --cvar tas --area NorthAtlantic --odir odir

How to cite it ?

You can use this DOI:10.5281/zenodo.7991331

License

Copyright(c) 2022 / 2024 Yoann Robin, Andreia Hisi

This file is part of CDSupdate.

CDSupdate is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

CDSupdate is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with CDSupdate. If not, see https://www.gnu.org/licenses/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdsupdate-2.0.0.tar.gz (34.2 kB view details)

Uploaded Source

Built Distribution

CDSupdate-2.0.0-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file cdsupdate-2.0.0.tar.gz.

File metadata

  • Download URL: cdsupdate-2.0.0.tar.gz
  • Upload date:
  • Size: 34.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for cdsupdate-2.0.0.tar.gz
Algorithm Hash digest
SHA256 d87aede430f9cdc5495b8ec8cc57d88d73a536be1ae943b4e05805d6ca214692
MD5 1373c165eada04b88be48db1affbf895
BLAKE2b-256 fc4541d3de9b1266e6bc3fda5b098c9ceaf9ed7f95b940ba17d7a0f040b3dcfc

See more details on using hashes here.

File details

Details for the file CDSupdate-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: CDSupdate-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 43.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for CDSupdate-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f126b6a35815ebeccc014a6e350cb585416828a3f95b0be619a3dc258be5c199
MD5 affff433a177ecbc6860332d61d0f6c1
BLAKE2b-256 b3e7016b71ce7d33177a67d6d1b01db3e142f1511e7efc3f6bee345aedaf8976

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page