default=0., help='Error on source origin time')
Location.__init__(self, **kwargs)
default=6.0, help='error on moment magnitude Mw as in [Hanks and Kanamori, 1979]')
if 'moment' in kwargs: mom = kwargs.pop('moment') if 'magnitude' not in kwargs: kwargs['magnitude'] = float(pmt.moment_to_magnitude(mom))
UncertaintySource.__init__(self, **kwargs)
def moment(self): return float(pmt.magnitude_to_moment(self.magnitude))
def moment(self, value): self.magnitude = float(pmt.moment_to_magnitude(value))
default=0.0, help='error on strike direction in [deg], ' 'measured clockwise from north')
default=90.0, help='error on dip angle in [deg], measured downward from horizontal')
default=0.0, help='error on rake angle in [deg], ' 'measured counter-clockwise from right-horizontal ' 'in on-plane view')
UncertaintySource, UncertaintySourceWithMagntiude, UncertaintyDCSource ]
return load_all(filename=filename)
return load_all_xml(filename=filename)
def source(self): return self.source__
def source(self, source): if source is None: return
if not (type(source) in source_classes): raise AttributeError('Source is not defined in pyrocko.gf.')
self.source__ = source
def uncertainty(self): return self.uncertainty__
def uncertainty(self, uncertainty): if not (type(uncertainty) in uncertainty_classes): raise AttributeError('No valid uncertainty class given.')
if self.source__ is not None: if uncertainty.T.classname != ( 'Uncertainty' + self.source.T.classname): raise AttributeError( 'Uncertainty is not matching used source.')
self.uncertainty__ = uncertainty
pass
'load_source_container', 'load_source_container_from_xml', 'SourceContainer'] + [u.__name__ for u in uncertainty_classes] |