windkit.metadata.update_var_attrs
- windkit.metadata.update_var_attrs(obj, var_dict)[source]
Update all data variable attributes.
- Parameters:
obj (xarray.Dataset or xarray.DataArray) – WindKit Dataset of DataArray to be updated.
vars_dict (dict) – Dictionary maping variable names to the attributes that should be used.
- Returns:
The same Dataset or DataArray with updated attributes.
- Return type: