update_dataset_table: Update reference dataset table

Description Usage Arguments Details Author(s)

View source: R/util.R

Description

Update var/index availability in master table from a curated reference JSON

Usage

1
2
3
4
update_dataset_table(
  projects = c("CMIP5", "CMIP6", "CMIP6Omon"),
  out.file = "/tmp/dataset_table.csv"
)

Arguments

projects

projects vector string (several allowed). Currently just "CMIP5" and "CMIP6".

out.file

Full path to output file table. Default to "/tmp/dataset_table.csv". See Details.

Details

The function will replace the appropriate fields within a copy of the master table dataset_table.csv in the inst folder, and store it in the target directory (writing permission is assumed).

Note that the dataset_table.csv in the inst folder will have to be replaced manually afterwards, and the package compiled for a new updated version.

The reference JSON storing the curated version of the IA ensemble members is at https://gitlab.predictia.es/ipcc/data-homogenizers/-/blob/master/total_members_curated.json. An up-to-date copy of this file is stored in 'inst/total_members_curated.json'.

Author(s)

J. Bedia


metaclip/metaclipcc documentation built on Sept. 24, 2021, 6:42 a.m.