checkNcdfFile: checkNcdfFile

Description Usage Arguments Value Author(s)

View source: R/checkNcdfFile.R

Description

check ncdf file for consistency with CF/COARDS/MDI ncdf conventions Check whether a ncdf file is consistent with the parts of the COARDS/CF ncdf conventions that the MDI group agreed on.

Usage

1
2
3
checkNcdfFile(file.name, dims = c("longitude", 
    "latitude", "time"), type = "strict", 
    var.check = "single")

Arguments

file.name

character string: file name to check

dims

vector of strings: names of the dimensions which need to be in the file.

type

character string: if 'strict', then all aspects are checked. If this is any other value, only aspects relevant for the processing of decomp.ncdf are checked.

var.check

character string: If 'single', then readNcdfVarName is used to infer the name of the variable in the target file which will then be checked,

Value

logical: (invisible) whether the file passed the check

Author(s)

Jannis v. Buttlar, Thomas Wutzler


bgctw/ncdfTools documentation built on Jan. 29, 2020, 1:16 p.m.