ArgoCanada / argodata

Download Argo Ocean Float Data
https://argocanada.github.io/argodata
Other
8 stars 3 forks source link

Add variables along N_PARAM for profile tables #4

Closed paleolimbot closed 3 years ago

paleolimbot commented 3 years ago
library(argodata)
library(dplyr, warn.conflicts = FALSE)

index <- argo_global_bio_prof() %>% 
  argo_filter_float(6901494) %>% 
  argo_extract_path_info() %>% 
  filter(file_cycle == 352) %>% 
  # one ascending, one descending profile
  slice(1)
#> Loading argo_global_bio_prof()
#> Downloading 1 file from 'https://data-argo.ifremer.fr'

argo_vars(index)
#> Downloading 1 file from 'https://data-argo.ifremer.fr'
#> Extracting from 1 file
#> # A tibble: 130 x 19
#>    file  name  longname units prec  ndims size  dim   att_long_name
#>    <chr> <chr> <chr>    <chr> <chr> <int> <lis> <lis> <chr>        
#>  1 cori… data… Data ty… ""    char      1 <int… <chr… Data type    
#>  2 cori… form… File fo… ""    char      1 <int… <chr… File format …
#>  3 cori… hand… Data ha… ""    char      1 <int… <chr… Data handboo…
#>  4 cori… refe… Date of… ""    char      1 <int… <chr… Date of refe…
#>  5 cori… date… Date of… ""    char      1 <int… <chr… Date of file…
#>  6 cori… date… Date of… ""    char      1 <int… <chr… Date of upda…
#>  7 cori… plat… Float u… ""    char      2 <int… <chr… Float unique…
#>  8 cori… proj… Name of… ""    char      2 <int… <chr… Name of the …
#>  9 cori… pi_n… Name of… ""    char      2 <int… <chr… Name of the …
#> 10 cori… stat… List of… ""    char      3 <int… <chr… List of avai…
#> # … with 120 more rows, and 10 more variables: att_conventions <chr>,
#> #   att_standard_name <chr>, att_units <chr>, att_resolution <dbl>,
#> #   att_axis <chr>, att_comment_on_resolution <chr>, att_valid_min <dbl>,
#> #   att_valid_max <dbl>, att_c_format <chr>, att_fortran_format <chr>

Created on 2021-03-06 by the reprex package (v0.3.0)

paleolimbot commented 3 years ago

This is now possible with argo_prof_param()