Giter VIP home page Giter VIP logo

earthquake-scenarios's People

Contributors

alejocaldegem avatar andresabarca-gem avatar antonioettorre avatar catalinayepes avatar martinacaruso avatar nicolepaul avatar ptormene avatar raoanirudh avatar sdelafuentep avatar zarringem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

earthquake-scenarios's Issues

Error in notebook src/usgs_stations_json_csv.py

When running the notebook the following error appears for the example for Puebla

AttributeError                            Traceback (most recent call last)
----> 3 # Read file using pandas
      4 
      5 stations = read_usgs_json(json_path)
      6 

~/earthquake-scenarios/src/usgs_stations_json_csv.py in ?(json_path)
     46 
     47         # Iterate over different columns. Each colum can be a component
     48         data = []
     49         pgas = []
---> 50         for index, chan in rec_sation.iteritems():
     51             try:
     52                 if chan["name"].endswith("Z") or chan["name"].endswith("U"):
     53                     continue

~/openquake/lib/python3.9/site-packages/pandas/core/generic.py in ?(self, name)
   5985             and name not in self._accessors
   5986             and self._info_axis._can_hold_identifiers_and_holds_name(name)
   5987         ):
   5988             return self[name]
-> 5989         return object.__getattribute__(self, name)

AttributeError: 'Series' object has no attribute 'iteritems'

Improve gmfs for Nepal/Gorkha event

The current gmfs indicated for Gorkha can be improved by:

  • Add rupture model and estimates from the rupture geometry defined by Stevens et al. 2018
  • Include gmpe logic tree from NSET
  • Evaluate and incorporate macroseismic information to condition gmf

The following studies consider macroseismic data for the characterisation of the ground shaking:

  1. Martin SS, Hough SE and Hung C (2015) Ground motions from the 2015 Mw 7.8 Gorkha, Nepal, Earthquake constrained by a detailed assessment of macroseismic data. Seismological Research Letters 86(6): 1524–1532. DOI: 10.1785/0220150138. https://doi.org/10.1785/0220150138
  2. Hough SE, Martin SS, Gahalaut V, et al. (2016) A comparison of observed and predicted ground motions from the 2015 MW7.8 Gorkha, Nepal, earthquake. Natural Hazards 84(3). Springer Netherlands: 1661–1684. DOI: 10.1007/s11069-016-2505-8. https://doi.org/10.1007/s11069-016-2505-8
  3. Adhikari SR, Baysal G, Dixit A, et al. (2017) Toward a unified near-field intensity map of the 2015 Mw 7.8 Gorkha, Nepal, Earthquake. Earthquake Spectra 33(Special issue 1): S21–S34. DOI: 10.1193/120716EQS226M. https://doi.org/10.1193/120716eqs226m
  4. McGowan SM, Jaiswal KS and Wald DJ (2017) Using structural damage statistics to derive macroseismic intensity within the Kathmandu valley for the 2015 M7.8 Gorkha, Nepal earthquake. Tectonophysics 714–715. Elsevier B.V.: 158–172. DOI: 10.1016/j.tecto.2016.08.002. https://doi.org/10.1016/j.tecto.2016.08.002
  5. Adhikari, Sujan & Guragain, Ramesh & Murakami, Hitomi. (2016). Study on shaking intensity distribution of the 2015 Gorkha earthquake in Nepal. Conference: International workshop on the first memorial day of 25th April, 2015, Gorkha Earthquake at Kathmandu, Volume: I.

Small issues in El_Salvador scenarios

Requesting Changes

The local experts in El Salvador have requested a change in the name for the two events in the country. I would suggest to follow their suggestions (see below) to the make the events more familiar to users in El Salvador:

Current Name Suggested Name
20010113_M7.6_SanMiguel 20010113_M7.6_Subduccion
20010213_M6.6_SanSalvador 20010213_M6.6_SanVicente

Issues

  1. In El_Salvador/20010113_M7.6_SanMiguel/Recording_Stations there seems to be additional station images that do not belong to this event. Two are for events in Haiti, and another one for an event in Kashmir. These should be removed.

  2. job.ini files in the OpenQuake_gmfs do not work out of the box. The rupture files cannot be found because the path provided in the job.ini are of the following form:

rupture_model_file = ../Ground_Shaking/Rupture/earthquake_rupture_model_GCMT.xml

However, the Ground_Shaking folder is not there. By removing that folder from the path the job.ini files work properly. I experienced this in the scenarios for El Salvador, but might be in the files for other countries as well

Updates Kobe 1995, Moijabana 2017, Bukoba 2016

The current gmfs can be improved:

[ ] Japan/Kobe 1995: Add the gmf "Stations: Seismic, gmlt: USGS, Rupture: USGS";
[ ] Botswana/Moijabana 2017: Fix the GEM logic tree;
[ ] Tanzania/Bukoba 2016: Fix the GEM logic tree.

Order to run the notebooks is confusing

For example, based on the current numbering/sorting, it seems 3_3_run_oq_scenarios.ipynb should be run before 3_oq_gmmLT_from_usgs_shakemap.ipynb. However, one needs a gmmLT to run the models.

Highlight USGS stations marked as outliers

When parsing the stationlist.json file from the USGS, stations marked as outliers are being included.

Add in the notebook 1_stations_usgs_json_to_csv.ipynb the option to highlight and remove outliers.

For example, for the event "20010213_M6.6_SanVicente" in El Salvador, the stations TO - Tonacatepeque and ZA - Zacatecoluca are highlighted as outliers.

New folder system

Organise folders to be compatible with the GRM regions:

  • Africa
  • Caribbean_Central_America
  • Central_Asia
  • East_Asia
  • Europe
  • Middle_East
  • North_America
  • North_Asia
  • Oceania
  • South_America
  • South_Asia
  • Southeast_Asia

Stamen tiles no longer functional in contextily

We use contextily for basemaps. Our default option in the notebooks is Stamen Terrain, but that is no longer supported in contextily (see geopandas/geopandas#3065). Alternate options to Stamen.TonerLite might include CartoDB.Positron, CartoDB.VoyagerLabelsUnder, OpenTopoMap, Esri.WorldGrayCanvas, OpenStreetMap.Mapnik, etc.

The full list of options is here: https://contextily.readthedocs.io/en/latest/providers_deepdive.html#What-is-this-%E2%80%9Cprovider%E2%80%9D-object-?

Bug: the site_model script is producing duplicated sites

The site model generated using the scr/3_2_oq_vs30_uniform_grid.ipynb is producing duplicated sites. Below a configuration example to replicate the issue:

# Events list from ECD
event = 'DRAFT_20230817_M6.1_ElCalvario'

# Reference rupture
rupture = 'earthquake_rupture_model_USGS.xml'

# Grid parameters in km
# Indicate tuples with: (x_distance, y_distance, grid_spacing)
corners = [(100, 100, 5), (250, 250, 10)]

# Define region CRS !!! (CRS UNITS MUST BE IN METERS)
# Check for reference (see https://spatialreference.org/)
region_crs = "EPSG:3857"  # EPSG:3857 - Web Mercator Auxiliary Sphere

# Clip sites based on country boundaries (use ISO3)
clip_countries = ['COL'] # Empty list for the full map

The error message is:

...

openquake.baselib.InvalidFile: Found duplicate sites {(-72.61278, 3.52155): 2, (-72.61278, 3.61121): 2, (-72.61278, 3.70086): 2, (-72.61278, 3.79049): 2, (-72.61278, 3.88013): 2, (-72.61278, 3.96975): 2, (-72.61278, 4.05936): 2, (-72.61278, 4.14896): 2, (-72.61278, 4.23855): 2, (-72.61278, 4.32813): 2, (-72.61278, 4.4177): 2, (-72.61278, 4.50726): 2, (-72.61278, 4.59681): 2, (-72.61278, 4.68634): 2, (-72.61278, 4.77587): 2, (-72.61278, 4.86538): 2, (-72.61278, 4.95489): 2, (-72.61278, 5.04438): 2, (-72.61278, 5.13385): 2, (-72.61278, 5.22332): 2, (-72.61278, 5.31277): 2} in /earthquake-scenarios/Colombia/20230817_M6.1_ElCalvario/OpenQuake_gmfs/site_model.csv

Turkey: 20230206_M7.8_KahramanmarasGaziantep - Missing site_model_europe.csv

Currently, the model input files for 20230206_M7.8_KahramanmarasGaziantep include only the site_model.csv and not the site_model_europe.csv.

The GEM logic tree uses ground motion models from ESHM20, notably KothaEtAl2020ESHM20SlopeGeology. This ground motion model requires additional inputs, which are not available from the standard script used to generate the site_model.csv. Since we resolved this already with other European events (e.g., 20161026_M6.09_CentralItaly), perhaps we can run the Europe iteration of the site model code also for Turkey?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.