This section demonstrates setting up a vocabulary for CF standard_names to be used with known OMSA servers and assuming a set of variables of interest. These vocabularies can then be saved and combined to create one for regular use, or used individually, or input together to OMSA.run()
.
The workflow for making the vocabulary is to
Shown below is example use of the built-in widget for selecting one variable in the given vocabulary, and then something similar was done for all the other variables. (The widget can be saved to html and show the last state but not to fully function without a kernel.)
import cf_pandas as cfp
import ocean_model_skill_assessor as omsa
In the best case scenarios, model and data variables will have a standard_name associated with them, so we create a vocabulary that can be used to exactly match those names. Even if a given server or file doesn't include many of these variables, they will be matched if present.
sn = cfp.standard_names()
w = cfp.Selector(options=sn)
# w.vocab.save(omsa.VOCAB_PATH("standard_names"))