Skip to content

Commit 95f3fd0

Browse files
committed
ENH: localize for Chicago
1 parent 6f7b4ca commit 95f3fd0

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

03-temperature/01-picking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import uuid
55

6-
datasource = 'central_park'
6+
datasource = 'mdw'
77

88
temperature = load_data(datasource)
99
temperature = temperature[temperature['year'] >= 2017]

03-temperature/02-custom_plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from w_helpers import load_data, aggregate_by_month
33
plt.ion()
44

5-
temperature = load_data('central_park')
5+
temperature = load_data('mdw')
66
temperature_monthly = aggregate_by_month(temperature)
77

88
fig, ax = plt.subplots()

03-temperature/03-interactive_temperature.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def remove(self):
206206
self.yearly_ax.figure.canvas.mpl_disconnect(self.cid)
207207

208208

209-
temperature = load_data('central_park')
209+
temperature = load_data('mdw')
210210
fig, (ax_by_month, ax_by_day, ax_by_hour) = setup_temperature_figure()
211211
temperature_at = AggregatedTimeTrace(temperature, 'temperature',
212212
ax_by_month, ax_by_day, ax_by_hour)

03-temperature/99-get_data.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,8 @@ def plot_station_locations(fig, fih, pick_radius=10):
191191
fih = get_filtered_isd(data_path)
192192
fig = plt.figure()
193193
ax, art, sp = plot_station_locations(fig, fih)
194+
195+
# after finding a station by picking on the map:
196+
#
197+
# mdw = sp.get_station_data('CHICAGO MIDWAY INTL ARPT', range(2015, 2019))
198+
# mdw.to_hdf('data/mdw.h5')

03-temperature/data/mdw.h5

1.9 MB
Binary file not shown.

0 commit comments

Comments
 (0)