main_vars#
- geobricks.main_vars(data)[source]#
Infer the main data variables in a dataset, or ask the user (in the case of vector datasets).
Parameters#
- datapath (str or pathlib.Path), or variable (xarray.Dataset, xarray.DataArray, geopandas.GeoDataFrame, geopandas.GeoSeries, pandas.DataFrame, pandas.Series or numpy.array)
Data whose main variable names will be retrieved.
Returns#
- list of str
List of the inferred main data variables.