#!/usr/bin/env python # coding: utf-8 # In[1]: import urllib.request import Nio import xarray as xr # In[2]: url='http://thredds.ucar.edu/thredds/fileServer/grib/NCEP/WW3/Regional_Alaska/WW3_Regional_Alaska_20171012_0000.grib2' fname = 'ww3_test.grib2' # In[3]: urllib.request.urlretrieve(url, fname) # In[4]: nc = Nio.open_file(fname) # In[5]: nc.variables # In[6]: ds = xr.open_dataset(fname, engine='pynio') # In[ ]: