argo_path_info: Extract information from an Argo path

Description Usage Arguments Value Examples

View source: R/argo-path.R

Description

Extract information from an Argo path

Usage

1
2
3
4
5
6
7

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).

tbl

A data.frame, ideally derived from argo_global_meta() and family. The column conventions used by the global indexes is assumed (e.g., columns latitude and longitude exist).

Value

A tibble::tibble() with columns file, file_float, file_type, file_cycle, file_data_mode, and file_modifier.

Examples

1
2
3
4
5
argo_path_info("dac/nmdis/2901633/profiles/R2901633_052.nc")

with_argo_example_cache({
  argo_extract_path_info(argo_global_meta())
})

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