hydro.rename¶
Functions¶
|
|
|
Find and update all instances of a given variable to a new name. |
|
Module Contents¶
- hydro.rename.rename_with_bookkeeping(xarray_obj, name_dict=None, attrs=None)[source]¶
Find and update all instances of a given variable to a new name.
Parameters can be referenced in the attributes of separate parameter (e.g.
ancillary_variables
) and need to be updated appropriately when renaming variables.- Parameters:
xarray_obj (xarray.Dataset) – A Dataset containing variables, flags, etc.
name_dict (Mapping) – Mapping of old variable names to new.
attrs (List[str]) – Names of variable attributes to search through.
- Return type:
- hydro.rename.to_argo_variable_names(xarray_obj)[source]¶
- Parameters:
xarray_obj (xarray.Dataset)
- Return type: