Browse Source

scenario: fix SI unit violation

master
Sebastian Heimann 1 month ago
parent
commit
c6dc76b007
  1. 2
      src/apps/grond.py
  2. 6
      src/scenario.py

2
src/apps/grond.py

@ -497,7 +497,7 @@ def command_scenario(args):
if options.problem == 'cmt':
problem = grond_scenario.DCSourceProblem(
nevents=options.nevents,
radius=options.source_radius,
radius=options.source_radius*km,
magnitude_min=options.magnitude_range[0],
magnitude_max=options.magnitude_range[1])
elif options.problem == 'rectangular':

6
src/scenario.py

@ -348,7 +348,7 @@ class GNSSCampaignObservation(Observation):
class SourceProblem(object):
def __init__(self, magnitude_min=6., magnitude_max=7., radius=10.,
def __init__(self, magnitude_min=6., magnitude_max=7., radius=10*km,
nevents=1):
self.magnitude_min = magnitude_min
self.magnitude_max = magnitude_max
@ -368,7 +368,7 @@ class DCSourceProblem(SourceProblem):
return scenario.sources.DCSourceGenerator(
magnitude_min=self.magnitude_min,
magnitude_max=self.magnitude_max,
radius=self.radius*km,
radius=self.radius,
depth_min=5*km,
depth_max=20*km,
nevents=self.nevents)
@ -403,7 +403,7 @@ class RectangularSourceProblem(SourceProblem):
magnitude_max=self.magnitude_max,
depth_min=5*km,
depth_max=15*km,
radius=self.radius*km,
radius=self.radius,
nevents=self.nevents)
def get_grond_problem_config(self):

Loading…
Cancel
Save