Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Franco Mele
decluster
Commits
f778c6b0
Commit
f778c6b0
authored
May 09, 2021
by
Franco Mele
Browse files
tutte le mag in ML e scrittura delle originarie
parent
632a4ad0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ingv_earthquakes.py
View file @
f778c6b0
...
...
@@ -83,13 +83,13 @@ def main():
if
(
df
[
'MagType'
][
ind
]
==
"Mw"
or
df
[
'MagType'
][
ind
]
==
"Mwp"
or
df
[
'MagType'
][
ind
]
==
"Mwpd"
):
if
(
mldb
):
mymag
=
(
df
[
'Magnitude'
][
ind
]
-
0.2
)
/
0.93
# da Di Bona
myty
=
"ML(
Mw-
DiBo)"
myty
=
"ML(DiBo
; Mw "
+
str
(
df
[
'Magnitude'
][
ind
])
+
"
)"
else
:
mymag
=
(
df
[
'Magnitude'
][
ind
]
-
0.31
)
/
0.915
# da Scognamiglio et al.
myty
=
"ML(
Mw-
S.T.M.)"
myty
=
"ML(S.T.M.
; Mw "
+
str
(
df
[
'Magnitude'
][
ind
])
+
"
)"
elif
(
df
[
'MagType'
][
ind
]
==
"mb"
):
mymag
=
(
df
[
'Magnitude'
][
ind
]
-
0.02
)
/
0.99
myty
=
"ML(
mb-
DiBo)"
myty
=
"ML(DiBo
; mb "
+
str
(
df
[
'Magnitude'
][
ind
])
+
"
)"
print
(
df
[
'Time'
][
ind
][
0
:
4
],
" "
,
\
df
[
'Time'
][
ind
][
5
:
7
],
" "
,
\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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