Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SeisFinder/Hazard Calculation

Background

Notes

 

Story / Deliverable

I want to use SeisFinder site-search after "scenariotest" branch is merged and bugfixes are made.

When I compute hazard maps, it will only need a single command to compute CS/Emp hazard map and ratio hazard map and histogram of ratio for each IM

When I compute hazard for single/multiple locations, I'd like a simple CLI command that also does plotting hazard curves

When I compute deagg for single/multiple locations, I'd like a simple CLI command

Summaries

Reading from CSVs took 6.5sec for each set of (loc, IM type)

Reading from IMDB also takes 6.5sec for each set of (loc, IM type) for adding the data to the column. BUT if user varies IM level, it only takes 1 sec.

Calculation of Hazard and Deagg is streamlined, and it submits the auto-generated slurm scripts.

Story / Deliverable

When calculating deagg with IM type, location and cs_ver, varying IM_level or exceedance should not force the program to re-read raw IM agg data and process them.

When calculating GM selection, user should be able to use the same set of parameters as deagg calculation

Streamline hazard/deagg calculation steps

<Design/Plan> When I run SeisFinder site-based search, it will allow me to access the data depending on my access level

Tasks/Progress

 
    WhoStatus Deliverables
(1)Complete "scenariotest" branch merge and fix bugs 2 daysDonePrecompute SQLite db for all IM_agg data1 dayViktorDone https://github.com/ucgmsim/seisfinder2/pull/46
(2)Write histogram plotting code that displays the ratio between CS and Emp hazard map for a given IM3 days

Develop an API that outputs all IMs in a numpy array for given IM type, station name

1 dayViktorDone 
(3)Write two execution methods 1. via SLURM 2. via CLI to compute hazard for single/multiple locations and plotting hazard curves2 daysDonehttps://github.com/ucgmsim/seisfinder2/pull/50/commits/7c22a29755275916bb4f0f5065dd4218dff88e47
(4)Write two execution methods 1. via SLURM 2. via CLI to compute deagg  for single/multiple locations2 daysDonehttps://github.com/ucgmsim/seisfinder2/commit/33960f5875c8ac53d9251699ebc9ce0b8beb9490
(5)Plan Access control/Edition/Release2 daysDoneSeisFinder versions, releases and access control
(6)Create a diagram that shows the architectural overview and interaction of components3 daysDonehttps://www.lucidchart.com/invitations/accept/90eda8c1-1b56-47d4-84b5-cd2b0cbdbb38

 

Image Removed

Known Issues / To Dos

Update setup process to do step (1) automatically.1 daySungDone 
(4)Fix hazard to use the API from (2)1 daySungDone 
(5)Fix deagg to use the API from (2)1 daySungDone 
(6)Write site_search_gm_sel.py that mimics the interface of site_search_deagg.py1 dayViktorDone(to be revisited) 
(7)

Automatically generate sl scripts and submit for hazard/deagg calc

2 daysSungDone 

 

Known Issues / To Dos

  1. Fault screening based on user specified loc vs. simulation domain is no longer necessary as the API from (2) does all the filtering already
  2. site_search's ArgParse needs revamp. Very counter-intuitive at the moment.
  3. site_search and site_search_deagg should generate .sl scrupt and run if executed from Mahuika.