argo_vars: Load Argo NetCDF variable metadata

Description Usage Arguments Value Examples

View source: R/argo-vars.R

Description

Use argo_vars() to extract variable information from a vector of Argo NetCDF files in the form of one row per variable. Use argo_read_vars() for lower-level output from a single NetCDF file.

Usage

1
argo_vars(path, download = NULL, quiet = NA)

Arguments

path

A path relative to the root directory of argo_mirror() or argo_cache_dir(). This value can also be a data.frame with a file column (e.g., a global index as returned by argo_global_meta() and others).

download

A logical vector indicating whether or not a file should be downloaded. Defaults to the value of argo_should_download(), which is TRUE for files that do not exist in the cache.

quiet

Use FALSE to show which files are downloaded and for more verbose error messages.

Value

A tibble::tibble() with one row per variable and columns file, name,size, dim, and att_* for variable attributes.

Examples

1
2
3
with_argo_example_cache({
  argo_vars("dac/csio/2900313/profiles/D2900313_000.nc")
})

ArgoCanada/argodata documentation built on Dec. 13, 2021, 10:13 a.m.