33# from command line.
44
55# Note:
6- # In IPython, enter
6+ # In IPython, enter
77# %matplotlib qt
88# on command line to open plots in new window. Enter
99# %matplotlib inline
1414
1515def main (plot ):
1616
17- demos = [omniweb , sscweb , cdaweb , cassini , lisird ]
17+ demos = [omniweb , sscweb , cdaweb , lisird ]
1818 #demos = [testdata]
1919
2020 for demo in demos :
@@ -41,6 +41,7 @@ def testdata(plot):
4141 # Plot all parameters
4242 hapiplot (data , meta )
4343
44+
4445def omniweb (plot ):
4546
4647 from hapiclient import hapi
@@ -87,7 +88,7 @@ def cdaweb(plot):
8788 start = '2001-01-01T05:00:00'
8889 stop = '2001-01-01T10:00:00'
8990 parameters = 'Magnitude,BGSEc'
90- opts = {'logging' : True , 'usecache' : True }
91+ opts = {'logging' : True , 'usecache' : True }
9192 data , meta = hapi (server , dataset , parameters , start , stop , ** opts )
9293 hapiplot (data , meta , ** opts )
9394
@@ -110,39 +111,17 @@ def cdaweb(plot):
110111 print (' %d. %s' % (len (meta ['catalog' ]), meta ['catalog' ][- 1 ]['id' ]))
111112 print ('' )
112113
113- # List all servers
114- servers = hapi (logging = True ) # servers is an array of URLs
115- print ('' )
116-
117-
118- def cassini (plot ):
119-
120- from hapiclient import hapi
121- from hapiplot import hapiplot
122-
123- server = 'http://datashop.elasticbeanstalk.com/hapi' ;
124- dataset = 'CHEMS_PHA_BOX_FLUXES_FULL_TIME_RES' ;
125- parameters = 'HPlus_BEST_T1' ;
126- start = '2004-07-01T04:00:00Z' ;
127- stop = '2004-07-01T06:00:00Z' ;
128- opts = {'usecache' : True , 'logging' : True }
129-
130- data , meta = hapi (server , dataset , parameters , start , stop , ** opts )
131-
132- popts = {'logging' : False , 'logy' : True , 'logz' : True }
133- hapiplot (data , meta , ** popts )
134-
135114
136115def lisird (plot ):
137116
138117 from hapiclient import hapi
139118 from hapiplot import hapiplot
140119
141- server = 'http://lasp.colorado.edu/lisird/hapi' ;
142- dataset = 'sme_ssi' ;
143- parameters = 'irradiance' ;
144- start = '1981-10-09T00:00:00.000Z' ;
145- stop = '1981-10-14T00:00:00.000Z' ;
120+ server = 'http://lasp.colorado.edu/lisird/hapi'
121+ dataset = 'sme_ssi'
122+ parameters = 'irradiance'
123+ start = '1981-10-09T00:00:00.000Z'
124+ stop = '1981-10-14T00:00:00.000Z'
146125
147126 opts = {'usecache' : True , 'logging' : True }
148127 data , meta = hapi (server , dataset , parameters , start , stop , ** opts )
0 commit comments