Create a Flood Abatement Opportunities Raster
make_flood_abatement_opportunities.RdThis function generates a raster that identifies flood abatement opportunities by integrating the Global Flood Database (GFD) and NDVI (Normalized Difference Vegetation Index). The function normalizes NDVI and flood risk data, then calculates potential areas for flood abatement based on their relationship.
Usage
make_flood_abatement_opportunities(
gfd_raster,
ndvi_raster,
pus,
iso3,
output_path = NULL,
threads = TRUE
)Arguments
- gfd_raster
A
SpatRasterrepresenting flood risk data from the Global Flood Database.- ndvi_raster
A
SpatRasterrepresenting NDVI data.- pus
A
SpatRasterdefining the planning unit (PU) grid.- iso3
A character string representing the ISO3 country code.
- output_path
A character string specifying the output directory for saving the raster (optional).
- threads
A logical value indicating whether to use multi-threaded processing where supported (default:
TRUE).