https://github.com/cran/fields
Raw File
Tip revision: 8eab500c3dad2103092ff68706417414fe53e16b authored by Doug Nychka on 22 September 2009, 20:23:49 UTC
version 6.01
Tip revision: 8eab500
summary.ncdf.R
# fields, Tools for spatial data
# Copyright 2004-2007, Institute for Mathematics Applied Geosciences
# University Corporation for Atmospheric Research
# Licensed under the GPL -- www.gpl.org/licenses/gpl.html
"summary.ncdf" <- function(object, ...) {
    for (i in 1:object$nvars) {
        vname = object$var[[i]]$name
        ndims = object$var[[i]]$ndims
        dimstring = paste(vname, "( variable ", as.character(i), 
            ") has shape")
        for (j in 1:ndims) {
            dimstring <- paste(dimstring, as.character(object$var[[i]]$dim[[j]]$len))
        }
        cat(dimstring, fill = TRUE)
    }
}
back to top