Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Kris Vanneste
moment_magnitude_calculator
Commits
b5e48eb5
Commit
b5e48eb5
authored
May 17, 2013
by
Tobias Megies
Browse files
automatic script: correct problem in QuakeML URI
parent
d95739f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/moment_mag_automatic.py
View file @
b5e48eb5
...
...
@@ -256,13 +256,14 @@ def calculate_moment_magnitudes(cat, output_file):
mag
.
mag_errors
.
uncertainty
=
Mw_std
mag
.
magnitude_type
=
"Mw"
mag
.
origin_id
=
event
.
origins
[
0
].
resource_id
mag
.
method_id
=
"
Custom fit to Boatwright spectrum
"
mag
.
method_id
=
"
smi:com.github/krischer/moment_magnitude_calculator/automatic/1
"
mag
.
station_count
=
len
(
moments
)
mag
.
evaluation_mode
=
"automatic"
mag
.
evaluation_status
=
"preliminary"
mag
.
comments
.
append
(
Comment
(
\
"Seismic Moment=%e Nm; standard deviation=%e"
%
(
moment
,
moment_std
)))
mag
.
comments
.
append
(
Comment
(
"Custom fit to Boatwright spectrum"
))
if
source_radius
>
0
and
source_radius_std
<
source_radius
:
mag
.
comments
.
append
(
Comment
(
\
"Source radius=%.2fm; standard deviation=%.2f"
%
(
source_radius
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment