If inundation file is a polygon, but land-use map is a raster, rasterize the polygon for the calculation: Try the following approach: https://gis.stackexchange.com/questions/151339/rasterize-a-shapefile-with-geopandas-or-fiona-python