Skip to main content

Python Client Library for accessing CMCC data

Project description

CMCC-DIAS-Client

DIAS API Client for access and analysis of CMCC data

Requirements

Python 3.7

Installation

To install the tool:

$ git clone https://github.com/CMCC-Foundation/cmcc-dias-client
$ cd cmcc-dias-client
$ python setup.py install

Configuration

To use the tool a file $HOME/.diasapirc must be created as following

url: http://dias.cmcc.scc:8282/api/v1
key: <uid>:<api-key>

Example

import diasapi

c = diasapi.Client()
c.retrieve("era5",
           { "variable": "tp",
             "product_type": "reanalysis",
             "year": ["1981","1983","1984"],
             "month": ["01","03","05"],
             "day": ["01","02"],
             "time": ["00:00", "06:00", "12:00", "18:00"],
             "area": [50, 10, 0, 30],
             "format": "netcdf",
           },
           "era5_reanalysis_tp.nc")

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

diasapi-0.2a0.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

diasapi-0.2a0-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

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