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
datais a path (str or pathlib.Path), the resulting dataset will be exported to a file with the same pathname and the suffix ‘_units’. Ifto_fileis a path, the resulting dataset will be exported to this specified filepath.
Returns#
- data_dsTYPE
DESCRIPTION.
If
to_fileargument is used, the resulting dataset can also be exported to a file.