#!/usr/bin/env python # coding: utf-8 # # Using hvplot with xarray # In[1]: import xarray as xr import hvplot.xarray # In[2]: url = 'http://thredds.ucar.edu/thredds/dodsC/grib/FNMOC/WW3/Global_1p0deg/Best' # In[3]: ds = xr.open_dataset(url) # In[4]: ds # In[5]: var = 'sig_wav_ht_surface' ds[var] # In[6]: ds[var].dims # In[7]: time_dim = ds[var].dims[0] # In[8]: ds[var].hvplot('lon', 'lat', groupby=time_dim, clim=(0,5), label=var) # In[ ]: