Skip to content
Snippets Groups Projects
Commit 00439c08 authored by Anne Philipp's avatar Anne Philipp
Browse files

first test for ECMWFAPI package

parent 565fd937
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import pytest
from ecmwfapi import ECMWFDataServer
from ecmwfapi import ECMWFService
class TestECMWFApi:
"""
"""
def test_public():
server = ECMWFDataServer()
server.retrieve({'dataset' : "interim",
'time' : "00",
'date' : "2013-09-01/to/2013-09-30",
'step' : "0",
'type' : "an",
'levtype' : "sfc",
'param' : "165.128/41.128",
'grid' : "0.75/0.75",
'target' : "interim201309.grib"
})
def test_member():
server = ECMWFService("mars")
server.execute({'class' : "ei",
'time' : "00",
'date' : "2013-09-01/to/2013-09-30",
'step' : "0",
'type' : "an",
'levtype' : "sfc",
'param' : "165.128/41.128",
'grid' : "0.75/0.75"},
"interim201309.grib")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment