Skip to content

Instantly share code, notes, and snippets.

View oblakeobjet's full-sized avatar

Miha Razinger oblakeobjet

  • ECMWF
View GitHub Profile
@davydany
davydany / show_map.py
Created September 26, 2012 17:06
Preparing data to plot contours in Matplotlib's Basemap
# 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)