Displaying 1 result from an estimated 1 matches for "file42yrrangedays".
2011 Jul 14
1
Error: "non-numeric argument to binary operator"
...etCDF)
library(ncdf)
setwd("c:/projects/netcdfcsfiles")
Conn42 = open.ncdf("128.111.220.111.46.15.32.42.nc");
# read the time variable, which measures years, and
# use the length of the vector to estimate the time span
#
timeObj = get.var.ncdf(Conn42,"time");
file42YrRangeDays = trunc(length(timeObj))
# Process each file separately:
# get attributes, read the rhum data cube,
# extract the time series from the cube,
# and rescale the time series vector
#
scaleFact = att.get.ncdf(Conn42,"rhum","scale_factor")
offset = att.get.ncdf(Conn42,&quo...