hydromt_wflow.components.WflowStaticmapsComponent.drop_vars#
- WflowStaticmapsComponent.drop_vars(names: list[str], errors: str = 'raise')[source]#
Drop variables from the grid.
This method is a wrapper around the xarray.Dataset.drop_vars method.
- Parameters:
names (list of str) – List of variable names to drop from the grid.
errors (str, optional {raise, ignore}) – How to handle errors. If ‘raise’, raises a ValueError error if any of the variable passed are not in the dataset. If ‘ignore’, any given names that are in the dataset are dropped and no error is raised.