cmip6_data_citation_generator API¶
-
cmip6_data_citation_generator.
generate_jsons
(input_dir, template_yaml, drs, output_dir, regexp='.*', keep=True)¶ Generate CMIP6 data citation json files
Parameters: - input_dir (str) – Directory to search for files.
- template_yaml (str) – Path to yaml file to use as a template for generating the json file.
- drs (str) – The data reference syntax used to save your data. Must be one of [“CMIP6input4MIPs”, “CMIP6output”].
- output_dir (str) – The path in which to save the generated files.
- regexp (str) – Regular expression to use to filter the filepaths found in
input_dir
. - keep (bool) – If True, generate jsons for the files in filepaths which match
regexp
. If False, do the opposite i.e. generate jsons for the files in filepaths which don’t matchregexp
.