Xarray quadmesh

In [1]:
import xarray as xr
import cartopy.crs as ccrs
import geoviews as gv

gv.extension('matplotlib')
gv.output(fig='svg', size=300)

Define data

In [2]:
tiles = gv.tile_sources.EsriImagery
rasm = xr.tutorial.open_dataset('rasm').load()
qmeshes = gv.Dataset(rasm.Tair[::4, ::3, ::3]).to(gv.QuadMesh, groupby='time')

Plot

In [3]:
tiles.opts(zoom=1) * qmeshes.opts(projection=ccrs.GOOGLE_MERCATOR)
Out[3]:

Download this notebook from GitHub (right-click to download).