Haz_calc_sub: The subroutine of hazard curve calculation

View source: R/haz_calc.R

Haz_calc_subR Documentation

The subroutine of hazard curve calculation

Description

This is a subroutine of haz_calc function

Usage

Haz_calc_sub(df_source, source_type, period, IM, z1, Vs30, weight = 1)

Arguments

df_source

The returned dataframe by flts_filter and pts_filter functions

source_type

The indicator of source type: 0 for flts; 1 for pts

period

The interest period

IM

IM level array

z1

Basin depth (km): depth from the ground surface to the 1km/s shear-wave horizon. -999 if unknown. A numeric value.

Vs30

Shear wave velocity averaged over top 30 m (in m/s). A numeric value.

weight

The weight that is supposed to be considered for the hazard

Value

A hazard matrix at the given IM levels for each event in df_sources


wltcwpf/RPSHA documentation built on July 6, 2023, 1:02 a.m.