NetCDF variables as R arrays