Hello, I have been having difficulties opening netcdf files using the netcdf library. I am able to successfully open the file and I can determine the names and size. However, when I try to read it I receive an error. Reading the documentation, I am wondering if this might be due to a difference between netcdf version 2 and more recent netcdf format? I've tried using different values for the count option without luck. I have had success reading this file into matlab.
library(netCDF)
aaa<- open.netCDF("/scratch/pocernic/int_fcst.20021201.0010.nc")
class(aaa)
[1] "netCDF"
summary(aaa)
netCDF file /scratch/pocernic/int_fcst.20021201.0010.nc is open $types [1] "integer" "numeric" "numeric" "integer" "integer" "integer" "single" [8] "single" "single" "single" "single" "single" "single" "single" [15] "single" "single" "single" "single" "single" "single" "single" [22] "single" "single" "single" "single" ... etc ## when I try to read it, I get the following error.
bbb<- read.netCDF(aaa)
Error: dim: Invalid dimension vector Thanks Matt Matt Pocernich NCAR - Research Applications Group 303-497-8312