argo_info: Load NetCDF general information

Description Usage Arguments Value Examples

View source: R/argo-info.R

Description

Use argo_info() to extract scalar variables and global attributes from a vector of Argo NetCDF files. Use argo_read_info() to extract variables from a previously-downloaded Argo NetCDF file.

Usage

1
argo_info(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 file. Columns containing global attribute information are prefixed with att_ to differentiate them from variables with zero dimensions.

Examples

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

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