In [ ]:
import netCDF4
In [ ]:
nc1 = netCDF4.Dataset('http://www.smast.umassd.edu:8080/thredds/dodsC/models/fvcom/NECOFS/Archive/Seaplan_33_Hindcast_v1/gom3_201301.nc')
In [ ]:
#nc2 = netCDF4.Dataset('/usgs/data2/notebook/data/MassBay_1995_01.nc','r+')
nc2 = netCDF4.Dataset('/usgs/data2/notebook/data/gom3_197801.nc','r+')
In [ ]:
nc2.variables['lon'][:] = nc1.variables['lon'][:]
nc2.variables['lat'][:] = nc1.variables['lat'][:]
nc2.variables['lonc'][:] = nc1.variables['lonc'][:]
nc2.variables['latc'][:] = nc1.variables['latc'][:]
In [ ]:
nc2.close()
In [ ]: