Open bouweandela opened 4 years ago
The bibtex files are already available for some of the other data in the reference folder. The extract_doi_value function finds the bibtex file and extracts the doi. If we can store the reference tag and use it while running a recipe, we can write the entire bibtex content for the cmorized data used in the recipe. For other data, as @bouweandela suggested, we can check global attributes to look for a doi or a link to reference entries.
For CMIP6 data, we have the information from ES-DOC that can be used to produce a BibTeX entry. For all other data, we only have the content of the
reference
(CMORized for ESMValTool) orreferences
(e.g. CMIP5) global NetCDF attribute. To improve the amount of BibTeX entries we have available, we could try to make a regular expression to extract DOIs from these strings and then download the corresponding BibTeX file.