obspy.taup.slowness_model.SlownessModel.get_num_layers

SlownessModel.get_num_layers(is_p_wave)[source]

Number of slowness layers.

This is meant to return the number of P or S layers.

Parameters

is_p_wave (bool) – Return P layer count (True) or S layer count (False).

Returns

Number of slowness layers.

Return type

int