Skip to content

Instantly share code, notes, and snippets.

View oblakeobjet's full-sized avatar

Miha Razinger oblakeobjet

  • ECMWF
View GitHub Profile
@oblakeobjet
oblakeobjet / show_map.py
Last active January 5, 2019 12:49 — forked from davydany/show_map.py
# More Info: http://davydany.com/post/32287214449/matplotlibs-basemap-plotting-a-list-of-latitude
def show_map(self, a):
# 'a' is of the format [(lats, lons, data), (lats, lons, data)... (lats, lons, data)]
lats = [ x[0] for x in a ]
lons = [ x[1] for x in a ]
data = [ x[2] for x in a ]
lat_min = min(lats)
lat_max = max(lats)