import matplotlib.pyplot as plt
import netCDF4 as nc
%matplotlib inline
grid = nc.Dataset('https://salishsea.eos.ubc.ca/erddap/griddap/ubcSSnBathymetryV17-02')
plt.pcolormesh(grid.variables['bathymetry'][:])
plt.colorbar()
<matplotlib.colorbar.Colorbar at 0x7fd0dcf634e0>
plt.pcolormesh(grid.variables['longitude'][:], grid.variables['latitude'][:],
grid.variables['bathymetry'][:])
plt.colorbar()
<matplotlib.colorbar.Colorbar at 0x7fd0dc133860>
print(grid.variables['longitude'][0,0], grid.variables['latitude'][0,0])
-123.42943572998047 46.85966491699219