コード例 #1
0
 def _get_moment_from_ndk_string(self, ndk_string, exponent):
     """
     Returns the moment and the moment magnitude
     """
     moment = float(ndk_string[49:56]) * (10.**exponent)
     version = ndk_string[:3]
     magnitude = utils.moment_magnitude_scalar(moment)
     return moment, version, magnitude
コード例 #2
0
 def _get_moment_from_ndk_string(self, ndk_string, exponent):
     """
     Returns the moment and the moment magnitude
     """
     moment = float(ndk_string[49:56]) * (10. ** exponent)
     version = ndk_string[:3]
     magnitude = utils.moment_magnitude_scalar(moment)
     return moment, version, magnitude