In [1]:
import netCDF4
import matplotlib.pyplot as plt
import numpy as np
%matplotlib inline

In [3]:
#%%timeit 
#url = 'http://geoport-dev.whoi.edu/thredds/dodsC/usgs/data0/bbleh/spring2012/00_dir_roms.ncml'
url = 'http://clancy.whoi.edu:8080/thredds/dodsC/data1/dralston/hudson/sandy/sandy009/00_dir_roms.ncml'
nc = netCDF4.Dataset(url)
s = nc.variables['salt'][-1,-1,:,:]
lon = nc.variables['lon_rho'][:,:]
lat = nc.variables['lat_rho'][:,:]
fig = plt.figure(figsize=(12,12))
plt.pcolormesh(lon,lat,s)
nc.close()



In [ ]: