hydromt_delft3dfm.workflows.update_data_columns_attribute_from_query#
- hydromt_delft3dfm.workflows.update_data_columns_attribute_from_query(branches: ~geopandas.geodataframe.GeoDataFrame, attribute: ~pandas.core.frame.DataFrame, attribute_name: str, logger=<Logger hydromt_delft3dfm.workflows.branches (WARNING)>)[source]#
Update an attribute column of branches.
Update is based on query on “branchtype”, “shape” and “width”/”diameter” values specified in attribute DataFrame.
- Parameters:
branches (gpd.GeoDataFrame) – Branches.
attribute (pd.DataFrame) – pd.DataFrame with specific attribute values per “branchtype”, “shape” and “width”/”diameter” (column names of the DataFrame).
attribute_name (str) – Name of the new attribute column in branches.
- Returns:
branches – Branches with new attribute values.
- Return type:
gpd.GeoDataFrame