Skip to content

Commit 5060539

Browse files
authored
Merge pull request #41 from ocefpaf/finish_40
finish PR #40
2 parents c206716 + c9182bf commit 5060539

File tree

3 files changed

+15
-21
lines changed

3 files changed

+15
-21
lines changed

.travis.yml

-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ env:
99
matrix:
1010
fast_finish: true
1111
include:
12-
- python: 3.5
13-
env: TEST_TARGET=default
1412
- python: 3.6
1513
env: TEST_TARGET=default
1614
- python: 3.6

README.md

+15-18
Original file line numberDiff line numberDiff line change
@@ -59,33 +59,30 @@ ERDDAP unifies the different types of data servers and offers a consistent way t
5959
from erddapy import ERDDAP
6060

6161

62-
constraints = {
62+
e = ERDDAP(
63+
server='https://data.ioos.us/gliders/erddap',
64+
protocol='tabledap',
65+
)
66+
67+
e.response = 'csv'
68+
e.dataset_id = 'blue-20160818T1448'
69+
e.constraints = {
6370
'time>=': '2016-07-10T00:00:00Z',
6471
'time<=': '2017-02-10T00:00:00Z',
6572
'latitude>=': 38.0,
6673
'latitude<=': 41.0,
6774
'longitude>=': -72.0,
6875
'longitude<=': -69.0,
6976
}
70-
71-
variables = [
72-
'depth',
73-
'latitude',
74-
'longitude',
75-
'salinity',
76-
'temperature',
77-
'time',
77+
e.variables = [
78+
'depth',
79+
'latitude',
80+
'longitude',
81+
'salinity',
82+
'temperature',
83+
'time',
7884
]
7985

80-
e = ERDDAP(
81-
server='https://data.ioos.us/gliders/erddap',
82-
protocol='tabledap',
83-
response='csv',
84-
dataset_id='blue-20160818T1448',
85-
constraints=constraints,
86-
variables=variables,
87-
)
88-
8986
df = e.to_pandas()
9087
```
9188

setup.py

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ def read(*parts):
3232
keywords=['ERDDAP', 'Scientific Python', 'Remote data access'],
3333
classifiers=[
3434
'Programming Language :: Python :: 3',
35-
'Programming Language :: Python :: 3.5',
3635
'Programming Language :: Python :: 3.6',
3736
'Topic :: Scientific/Engineering :: GIS',
3837
'License :: OSI Approved :: BSD License',

0 commit comments

Comments
 (0)