xoa.meta

xoa.meta#

Meta-data and conventions management

Functions

are_similar(da0, da1)

Check if two DataArrays are similar

assign_meta_specs(ds[, name, register, ...])

Set the meta_specs encoding to name in all data vars and coords

get_cache()

Get the meta cache dict

get_default_meta_specs(**kwargs)

Get the default Meta specifications

get_matching_item_specs(da[, loc])

Get the item Meta specs that match this data array

get_meta_config_file(name)

Get the path of a meta config file given its short name

get_meta_specs([name, cache])

Get the current or a registered Meta specifications instance

get_meta_specs_encoding(ds)

Get the meta_specs encoding value

get_meta_specs_from_encoding(ds)

Get a registered Meta specs instance from the meta_specs encoding value

get_meta_specs_from_name(name[, errors])

Get a registered Meta specs instance from its name

get_meta_specs_matching_score(ds, meta_specs)

Get the matching score between ds data_vars and coord names and a MetaSpecs instance names

get_registered_meta_specs([current, ...])

Get the list of registered MetaSpecs

get_variant(ds, variants[, errors])

Try to find a unique generic data array in a dataset

infer_coords(ds)

Infer which of the data arrays of a dataset are coordinates

infer_meta_specs(ds[, named, from_attrs, ...])

Get the registered MetaSpecs that are best matching this dataset

is_registered_meta_specs(name)

Check if given meta specs set is registered

register_meta_specs(*args, **kwargs)

Register MetaSpecs in a bank optionally with a name

reset_cache([memory])

Reset the in memory meta specs cache

search_similar(obj, da)

Search in ds for a similar DataArray

show_cache()

Show the meta specs cache file

Classes

set_meta_specs(meta_source)

Set the current Meta specs