arctichoke.dataset.get_variable =============================== .. py:module:: arctichoke.dataset.get_variable Functions --------- .. autoapisummary:: arctichoke.dataset.get_variable.get_variable_name Module Contents --------------- .. py:function:: 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. :param dataset: The dataset for which to determine the variable name. :type dataset: `str`, `xarray.DataArray`, `xarray.Dataset` :returns: **var_name** -- The name of the variable :rtype: `str` .. rubric:: Examples >>> from arctichoke.dataset.grid_type import get_variable_name