xoa.meta.infer_meta_specs#
- xoa.meta.infer_meta_specs(ds, named=False, from_attrs=True, from_score=True)[source]#
Get the registered MetaSpecs that are best matching this dataset
This accomplished with some heurestics. First, the
meta_specsglobal attribute or encoding of the dataset is compared with the name of all registered datasets. Second, a score based on the number of data_vars and coord names that are both in the meta_specs and the dataset is computed byget_meta_specs_matching_score()for the registered instances. Finally, if no matching dataset is found, the current one is returned.