source: flex_extract.git/Testing/Installation/Api_testscripts/test_cdsapi_pressurelevel.py @ 5bf163a

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

prepared testscripts and install/usage scripts for the manuscript; used 4 digits for year for CERA-20C data;

  • Property mode set to 100644
File size: 328 bytes
Line 
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3
4import cdsapi
5
6c = cdsapi.Client()
7
8c.retrieve("reanalysis-era5-pressure-levels",
9{
10        "variable": "temperature",
11        "pressure_level": "1000",
12        "product_type": "reanalysis",
13        "year": "2008",
14        "month": "01",
15        "day": "01",
16        "time": "12:00",
17        "format": "grib"
18},
19"download_cdsapi.grib")
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG