Replies: 1 comment
-
Hello, Thanks for your interest in using R2D! To import the hazard with only flood depth, you can start from the built-in example 7 and remove the 'PWD' column in all the 'GP_files' (e.g., '10001.csv') in the input_data/IMs folder. This can be down with a simple Python script like below: import os import pandas as pd orig_dir = '../E7HurricaneWindWater/input_data/IMs' new_dir = '../E7HurricaneWaterOnly/input_data/IMs' orig_grid_file = os.path.join(orig_dir, 'EventGrid.csv') orig_grid = pd.read_csv(orig_grid_file) for i in orig_grid.index: gp_file = os.path.join(orig_dir, orig_grid.loc[i, 'GP_file']) gp = pd.read_csv(gp_file) gp = gp.drop(columns = ['PWS']) gp.to_csv(os.path.join(new_dir, orig_grid.loc[i, 'GP_file']), index=False) Besides preparing the hazard files, you will also need to modify the "auto-population script" defined in the DL panel under pelicun3 to assign proper fragility/consequence functions to each building in your building inventory. Can you provide more information on what type of fragility functions you plan to use so we can better assist you in modifying the "auto-population script"? |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I am simulating my flood model and as a result of that I do have flood depth. I would like to use R2D to assess the damage caused by the flood depth on my critical buildings.
I have generated asset file (a csv file based on the nsi data), and I have flood depth at those points. I am not sure how to give the model my hazard file so that it knows all of the analysis are just based on flood depth not wind.
could you please help me on this part.
also, attached please find the inventory file I generated for the model.
HobokenBuildingInventory.csv
I do appreciate any guidance.
Beta Was this translation helpful? Give feedback.
All reactions