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.

Files for diasapi, version 0.2a0
Filename, size File type Python version Upload date Hashes
Filename, size diasapi-0.2a0-py3-none-any.whl (12.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size diasapi-0.2a0.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page