Example use of Stormstats package

Used to read csv data downloaded from Blitzorg's historical data section. Converts these data to a Geopandas DF, and can plot in Folium.

By default, Storm() will read from an example data resource included with the package. To set this to read a file you download call it as:

>>> stormstats.Storm(f='path_to_file/filename.csv')

Currently features are limited, more will be added over time


In [2]:
import stormstats

In [3]:
S =stormstats.Storm()

In [4]:
S.df.head()


Out[4]:
geometry dt
0 POINT (13.625396 37.16406) 2016-11-03 01:00:05:740871
1 POINT (13.417872 35.022735) 2016-11-03 01:00:09:227252
2 POINT (13.685473 37.13581) 2016-11-03 01:00:17:987114
3 POINT (13.618645 37.101625) 2016-11-03 01:00:36:008887
4 POINT (13.657785 37.188078) 2016-11-03 01:00:36:030488

In [5]:
S.get_map(create_html=False)


Out[5]:

In [ ]: