openairclim.gui.components.utils
Provides utility functions for the OpenAirClim GUI.
- openairclim.gui.components.utils.auto_scale(max_val)[source]
Determine a scaling factor for clean axis labels.
Values in the range [0.1, 1000) are left unscaled. Otherwise, the appropriate power of 10 is extracted and returned as a label prefix using Unicode superscript characters.
- openairclim.gui.components.utils.get_numeric_vars(ds)[source]
Return names of plottable numeric data variables. Allows for all numeric data within the inventories to be visualised, even if it is not used by OpenAirClim.
- Parameters:
ds (xarray.Dataset) – Emission inventory.
- Returns:
Names of numeric data variables, excluding spatial fields and ac.
- Return type: