Skip to content

Commit 207f120

Browse files
committed
Modify CHANGES.txt
1 parent f295f6b commit 207f120

File tree

2 files changed

+27
-6
lines changed

2 files changed

+27
-6
lines changed

CHANGES.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,5 @@ v0.1.9b0:
6868
2020-12-24 -- Remove hapiplot. Addresses #31.
6969
2020-12-28 -- 1c1d32f Fix time name conflict.
7070
v0.1.9b1:
71-
2020-01-19 -- Add missing hapitime.py file
71+
2020-01-19 -- 53669fc Add missing hapitime.py file
72+
2020-01-20 -- 9f8b82f Use atol instead of rtol in readcompare.py.

hapi_demo.py

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,25 @@ def main():
2222
except Exception as e:
2323
print("\033[0;31mError:\033[0m " + str(e))
2424

25+
26+
def testdata():
27+
28+
from hapiclient import hapi
29+
30+
server = 'http://hapi-server.org/servers/TestData2.0/hapi'
31+
dataset = 'scalar'
32+
start = '1970-01-01T00:00:00'
33+
stop = '2001-01-01T00:01:00'
34+
parameters = 'scalar,vector'
35+
opts = {'logging': True, 'usecache': True}
36+
37+
data, meta = hapi(server, dataset, parameters, start, stop, **opts)
38+
39+
2540
def omniweb():
2641

2742
from hapiclient import hapi
28-
from hapiplot import hapiplot
29-
43+
3044
server = 'https://cdaweb.gsfc.nasa.gov/hapi'
3145
dataset = 'OMNI2_H0_MRG1HR'
3246
start = '2003-09-01T00:00:00'
@@ -39,7 +53,8 @@ def omniweb():
3953

4054
# Plot all parameters
4155
hapiplot(data, meta)
42-
56+
57+
4358
def sscweb():
4459

4560
from hapiclient import hapi
@@ -55,7 +70,8 @@ def sscweb():
5570
data, meta = hapi(server, dataset, parameters, start, stop, **opts)
5671
hapiplot(data, meta, **opts)
5772

58-
def cdaweb():
73+
74+
def cdaweb():
5975

6076
from hapiclient import hapi
6177
from hapiplot import hapiplot
@@ -93,6 +109,7 @@ def cdaweb():
93109
servers = hapi(logging=True) # servers is an array of URLs
94110
print('')
95111

112+
96113
def cassini():
97114

98115
from hapiclient import hapi
@@ -110,6 +127,7 @@ def cassini():
110127
popts = {'logging': False, 'logy': True, 'logz': True}
111128
hapiplot(data, meta, **popts)
112129

130+
113131
def lisird():
114132

115133
from hapiclient import hapi
@@ -123,7 +141,9 @@ def lisird():
123141

124142
opts = {'usecache': True, 'logging': True}
125143
data, meta = hapi(server, dataset, parameters, start, stop, **opts)
126-
hapiplot(data, meta)
144+
145+
hapiplot(data, meta)
146+
127147

128148
if __name__ == '__main__':
129149
try:

0 commit comments

Comments
 (0)