I am new to geospatial toolbox of Python so my question might sound basic and irrelevant to OSMNX package. I am trying to identify and remove road segments (i.e. edges in the graph) that are damaged say by flood. After that I can do my network analysis.
I used OSMNX to download the road graph and geopanda dataframe for the area that I am interested and I have a raster file that shows the depth of water in the same area. I know what is the depth of water that makes a road unusable (say more than 50cm). I would like to know how can I use the raster file to intersect it with the road graph and identify segments of the road that I have to remove? Any suggestion would be very helpful as I am currently stuck with this.