Use argo_read_info()
to extract variables and global attributes from
a previously-downloaded Argo NetCDF file. The variables read by
argo_read_info()
are always length 1.
argo_read_info(file, quiet = FALSE)
A previously downloaded Argo NetCDF file
(e.g., using argo_download()
).
Use FALSE
to stop for malformed files, NA
to
silently warn for malformed files, or TRUE
to silently ignore
read errors when possible.
A tibble::tibble()
with one row. Columns containing
global attribute information are prefixed with att_
to differentiate
them from variables with zero dimensions.
prof_file <- system.file(
"cache-test/dac/csio/2900313/profiles/D2900313_000.nc",
package = "argodata"
)
argo_read_info(prof_file)
#> # A tibble: 1 × 15
#> DATA_TYPE FORMAT_VERSION HANDBOOK_VERSION REFERENCE_DATE_T… DATE_CREATION
#> <chr> <chr> <chr> <chr> <chr>
#> 1 "Argo profile… "3.1 " "1.2 " 19500101000000 200509261036…
#> # … with 10 more variables: DATE_UPDATE <chr>, att_title <chr>,
#> # att_institution <chr>, att_source <chr>, att_history <chr>,
#> # att_references <chr>, att_comment <chr>, att_user_manual_version <chr>,
#> # att_Conventions <chr>, att_featureType <chr>