uwsift.workspace.utils package

Submodules

uwsift.workspace.utils.metadata_utils module

uwsift.workspace.utils.metadata_utils.get_default_climits(info: dict) Tuple | None[source]

Return the value of clims configured in ‘default_colormaps’ for the standard name taken from the given ‘’info’’

If no according clims are configured, the clims invalid default value is returned.

uwsift.workspace.utils.metadata_utils.get_default_colormap(info: dict, guidebook: ABI_AHI_Guidebook) str | None[source]

Return the name of a colormap configured in ‘default_colormaps’ for the standard name taken from the given info.

If no according colormap is configured or the configuration yields an unknown colormap name (in that case a warning is logged), the colormap provided by the guidebook is returned.

uwsift.workspace.utils.metadata_utils.get_default_point_style_name(info: dict) str[source]
uwsift.workspace.utils.metadata_utils.get_point_style_by_name(point_style_name: str) Dict[str, str][source]
uwsift.workspace.utils.metadata_utils.map_point_style_to_marker_kwargs(point_style: dict)[source]

Map a dictionary containing style settings to the Vispy Markers interface.

The mappings (tries to) implement a subset of SVG/HTML styling specifications.

Todo

Verify specification conformance.

References

Parameters:

point_style – dictionary of SVG/HTML style settings for the markers

Returns:

kwargs to be used when calling a Markers constructor

Module contents