Xarray quadmesh

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

hv.extension('matplotlib')
%output size=300 fig='svg'

Define data

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

Plot

In [3]:
%%opts WMTS [zoom=1] QuadMesh [projection=ccrs.GOOGLE_MERCATOR]
tiles * qmeshes
Out[3]:

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