shakelib.conversions.convert_imt¶
- class shakelib.conversions.convert_imt.IMTConverter[source]¶
Bases:
ABC
Base class for implementing conversions between intensity measurement types (IMT).
- abstract convertAmps(imt_in, imt_out, imt)[source]¶
Returns an array of converted IMT amplitude values.
- Parameters:
- Returns:
Numpy array of amps converted from imt_in to imt_out.
- Return type:
array
- Raises:
ValueError – If not a valid conversion.