source: flex_extract.git/Testing/Installation/Api_testscripts/test_cdsapi_fluxdata.py @ b4ae1d6

ctbtodev
Last change on this file since b4ae1d6 was b4ae1d6, checked in by Anne Philipp <anne.philipp@…>, 4 years ago

added example scripts for installation instructions

  • Property mode set to 100644
File size: 389 bytes
Line 
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3
4import cdsapi
5
6c = cdsapi.Client()
7
8c.retrieve('reanalysis-era5-single-levels',
9{ 
10  "product_type":'reanalysis',
11  "area": [40.0,-10.0,30.0,10.0],
12  "year": "2018",
13  "month": "08",
14  "day": ['8','10'],
15  "grid": [0.5,0.5],
16  "param": "167.128",
17  "time": ['00', '06', '12', '18'],
18  "format":'grib2',
19}, 'download_era5_flux_cdsapi.grib')
20
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG