Commit b60e0060 authored by Tara Evaz Zadeh's avatar Tara Evaz Zadeh
Browse files

added entrypoint

parent 86a51d1e
...@@ -4,7 +4,8 @@ import numpy as np ...@@ -4,7 +4,8 @@ import numpy as np
import pandas as pd import pandas as pd
import csv import csv
import losslib import losslib
from damageCalculator_TileVersion import damageCalculator_TileVersion import os
from damagecalculator_tile_version import damageCalculator_TileVersion
def getExposuresPerTile( def getExposuresPerTile(
...@@ -180,3 +181,24 @@ def getExposuresPerTile( ...@@ -180,3 +181,24 @@ def getExposuresPerTile(
fullGroundMotionField, Result_path, fragilityFileDir, fullGroundMotionField, Result_path, fragilityFileDir,
exposuresPerTile, taxonomy_conversion_path, shakemap_path, exposuresPerTile, taxonomy_conversion_path, shakemap_path,
polygonSource_path, exposureType, method) polygonSource_path, exposureType, method)
pjoin = os.path.join
if __name__ == '__main__':
method = "linear"
exposureType = "cell"
base_path = os.environ.get('LOSS_PATH')
cellIdSource_path = pjoin(base_path, "Inputs/exposure_uniq_cellids_cell.csv")
fragilityFileDir = pjoin(base_path, "Inputs/Fragilities")
taxonomy_conversion_path = pjoin(base_path, "Inputs/taxonomy_mapping_Europe.csv")
shakemap_path = pjoin(base_path, "Inputs/shakemap_92_3_reOrder.csv")
exposures_path = pjoin(base_path, "Inputs/Exposure_M008_3tiles_cell.csv")
polygonSource_path = pjoin(base_path, "Inputs/M008_exposure_Attica_GDE_visual_v001_sat_27f_by_cell_reOrder.csv")
Result_path = pjoin(base_path, "DamageResult_M008_3tiles_cell.csv")
getExposuresPerTile(Result_path,exposures_path,fragilityFileDir,taxonomy_conversion_path,shakemap_path,polygonSource_path,cellIdSource_path,exposureType,method)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment