-
Notifications
You must be signed in to change notification settings - Fork 0
/
RiskMap.py
24 lines (18 loc) · 968 Bytes
/
RiskMap.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- coding: utf-8 -*-
# ---------------------------------------------------------------------------
# RiskMap.py
# Created on: 2020-05-31 13:24:29.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
# Local variables:
lka_ppp_2020_tif = "lka_ppp_2020.tif"
Galle_Matara = "Galle_Matara"
Population_Southern_tif = "C:\\Users\\HP\\Desktop\\Projects\\SpaceApp\\New folder\\Population_Southern.tif"
Risk_Map_tif = "C:\\Users\\HP\\Desktop\\Projects\\SpaceApp\\New folder\\Risk_Map.tif"
# Process: Clip
arcpy.Clip_management(lka_ppp_2020_tif, "79.9861591350014 5.91815783273727 80.7226652336149 6.44000122898748", Population_Southern_tif, Galle_Matara, "-9.999900e+004", "ClippingGeometry", "MAINTAIN_EXTENT")
# Process: Raster Calculator
arcpy.gp.RasterCalculator_sa("Float(Float((\"%Population_Southern.tif%\")/10000)*12.9275)", Risk_Map_tif)