[R-sig-Geo] Reading .nc netCDF files
Kenny Bell
kmb56 at berkeley.edu
Fri Apr 17 08:52:50 CEST 2015
I'm having trouble with the nc_open() from the ncdf4
<http://cirrus.ucsd.edu/~pierce/ncdf/>package in Windows 8.1.
The following code crashes R when running in the standard GUI and RStudio.
Any tips for fixing this and reading the data in more cleanly?
library(ncdf4)
url <- "
http://thredds.northwestknowledge.net:8080/thredds/fileServer/NWCSC_INTEGRATED_SCENARIOS_ALL_CLIMATE/macav2livneh/CCSM4/macav2livneh_huss_CCSM4_r6i1p1_historical_1990_2005_CONUS_monthly.nc
"
download.file(url = url,
destfile =
"macav2livneh_huss_CCSM4_r6i1p1_historical_1990_2005_CONUS_monthly.nc")
nc <-
nc_open("macav2livneh_huss_CCSM4_r6i1p1_historical_1990_2005_CONUS_monthly.nc")
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list