argo_read_vars: Read NetCDF variable metadata

Description Usage Arguments Value Examples

View source: R/argo-vars.R

Description

Use argo_vars() to extract variable information fromm an Argo NetCDF file in the form of one row per variable.

Usage

1
argo_read_vars(file, vars = NULL, quiet = FALSE)

Arguments

file

A previously downloaded Argo NetCDF file (e.g., using argo_download()).

vars

A vector of variable names to include. Explicitly specifying vars can lead to much faster read times when reading many files.

quiet

Use FALSE to stop for malformed files, NA to silently warn for malformed files, or TRUE to silently ignore read errors when possible.

Value

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

Examples

1
2
3
4
5
6
prof_file <- system.file(
  "cache-test/dac/csio/2900313/profiles/D2900313_000.nc",
  package = "argodata"
)

argo_read_vars(prof_file)

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