arctichoke.dataset.get_variable
Functions
|
Get the variable name of the dataset. |
Module Contents
- arctichoke.dataset.get_variable.get_variable_name(dataset: str, xarray.DataArray, xarray.Dataset)
Get the variable name of the dataset.
Opens the given dataset, checks the data variable attributes, and returns the variable name.
- Parameters:
dataset (str, xarray.DataArray, xarray.Dataset) – The dataset for which to determine the variable name.
- Returns:
var_name – The name of the variable
- Return type:
str
Examples
>>> from arctichoke.dataset.grid_type import get_variable_name