fzhu2e / cfr

A Python package for Climate Field Reconstruction
https://fzhu2e.github.io/cfr
BSD 3-Clause "New" or "Revised" License
13 stars 6 forks source link

ptypes generalization #18

Open khider opened 1 month ago

khider commented 1 month ago

The ptypes used for mapping and other visualizations correspond to the old LiPD nomenclature as present in the pickle file used in the tutorials. Lipdverse has standardized many of these terms and we should offer this option as well. Instead of replacing, we should add an option for ptype in ProxyRecord to allow for a lipdverse option dictionary using the new standard terms.

Vocabulary is here. Need to use archiveType and variableName. A way to scrape the website for automated generation of the ptype can be found here. Note that this doesn't fully solve the problem for generating marker and color schemes automatically and an 'other' option is needed to avoid breakage as the vocabulary is updated. An example of such a plotting default dictionary can be found here.