[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-geo
Subject:    [R-sig-Geo] Reading .nc netCDF files
From:       Kenny Bell <kmb56 () berkeley ! edu>
Date:       2015-04-17 6:52:50
Message-ID: CALOjXYTnm7phTJnZOoHRzMXtGbPFf_ptGMNWnrp7s7cdGib_0A () mail ! gmail ! com
[Download RAW message or body]

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_SCENARI \
OS_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]]

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic