import pygrib
import numpy as np
import matplotlib.pyplot as plt
import pyproj
from mpl_toolkits.basemap import Basemap
from PyNIO import nio
grbs = pygrib.open('../sampledata/rotated_ll.grib1')
grb = grbs.next()
lats, lons = grb.latlons()
data = grb['values']
m = Basemap(projection='stere',lon_0=5,lat_0=60,width=4000.e3,height=3000.e3,resolution='l')
x,y = m(lons,lats)
m.drawcoastlines()
m.contourf(x,y,data,15)
plt.title(grb['name'])
plt.show()

import pygrib
import numpy as np
import matplotlib.pyplot as plt
import pyproj
from mpl_toolkits.basemap import Basemap
from PyNIO import nio
grbs = pygrib.open('../sampledata/rotated_ll.grib1')
grb = grbs.next()
lats, lons = grb.latlons()
data = grb['values']
m = Basemap(projection='stere',lon_0=5,lat_0=60,width=4000.e3,height=3000.e3,resolution='l')
x,y = m(lons,lats)
m.drawcoastlines()
m.contourf(x,y,data,15)
m.drawmeridians(np.arange(-60,61,5))
m.drawparallels(np.arange(20,80,5))
plt.title(grb['name'])
plt.show()

add lat/lon lines