Session 2: Assignment#

Create the following hazards with given information and get hazard values from created hazards

  • a model-based tornado

  • a dataset-based earthquake

Please follow the instruction at each cell.

1. A model-based tornado#

Using the data from section 2.2, slightly alter the values of the Centerville tornado and obtain a new set of parameters that differ from the previously seen examples.

Tornado model definition:

  • Tornado Model: MeanWidthTornado

  • EF Rating: EF3

  • Start point of path:

    • Latitude:

    • Longitude:

  • End point of path:

    • Latitude:

    • Longitude:

  • Wind speed method: 1

  • number of simulation: 1

  • random seed: 2021

After you have obtained them, proceed as shown during the session.

# Import modules
from pyincore import HazardService, IncoreClient
import json
# Connect to IN-CORE serivce by creating IncoreClient
client = IncoreClient()

# Create the HazardService object
# TODO: create a JSON (dictionary) definition of tornado model as given above
my_tornado_model = ""
# TODO: create a tornado with definition 
# TODO: acquire hazard id you created and visualize
# TODO: Getting and printing hazard value from your tornado

2. A dataset-based earthquake#

Now, using the dataset-driven earthquake definition seen in section 3.3, define a new earthquake hazard.

Geotiff files are provided in the folder and here are description of each GeoTiff:

  • pga-prob.tif

    • hazard type:

    • demand type:

    • demand unit:

    • period:

    • recurrenceInterval: 50

    • recurrenceUnit: years

  • sa-035-prob.tif

    • hazard type:

    • demand type:

    • demand unit:

    • period:

    • recurrenceInterval: 50

    • recurrenceUnit: years

Note - since these are probabilistic earthquake hazards, eqParameters is not part of the description and is replaced by recurrence information. The rest is the similar to section 3.3. A complete dataset-driven hazard consists of these two files.

Proceed as in the prior exercise.

# TODO: create a JSON (dictionary) definition of dataset-based earthquake
my_eq_def = ""
# TODO: create a earthquake with definition and files
# TODO: acquire hazard id you created and visualize
# TODO: Getting and printing hazard value from your tornado

Answers#

Please open session2-assignment-answer.ipynb.