convert_units#

geobricks.convert_units(data, operation, *, var=None, to_file=False)[source]#

Parameters#

dataTYPE

DESCRIPTION.

operationTYPE

DESCRIPTION.

  • : TYPE

    DESCRIPTION.

varTYPE, optional

DESCRIPTION. The default is None.

to_filebool or path (str or pathlib.Path), default False

If True and if data is a path (str or pathlib.Path), the resulting dataset will be exported to a file with the same pathname and the suffix ‘_units’. If to_file is a path, the resulting dataset will be exported to this specified filepath.

Returns#

data_dsTYPE

DESCRIPTION.

If to_file argument is used, the resulting dataset can also be exported to a file.