Browse Source

grond go: improve error handling

whitelist
Sebastian Heimann 2 years ago
parent
commit
4d7a7cd4cb
2 changed files with 42 additions and 8 deletions
  1. +30
    -0
      docs/source/files/gnss.yaml
  2. +12
    -8
      src/apps/grond.py

+ 30
- 0
docs/source/files/gnss.yaml View File

@ -0,0 +1,30 @@
--- !pf.gnss.GNSSCampaign
name: northridge
stations:
- !pf.gnss.GNSSStation
lat: 18.30
lon: -74.22
elevation: 0.0
depth: 0.0
code: ANGL
style: static
north: !pf.gnss.GNSSComponent
unit: m
shift: 5.7e-06
sigma: 5.7e-06
east: !pf.gnss.GNSSComponent
unit: m
shift: -7e-07
sigma: 8.8e-06
up: !pf.gnss.GNSSComponent
unit: m
shift: 2.93e-05
sigma: 1.11e-05
correlation_ne: 0.002
correlation_eu: 0.0
correlation_nu: 0.0
- !pf.gnss.GNSSStation
lat: 18.28
lon: -74.23
# ...
# (add more station information in the same manner)

+ 12
- 8
src/apps/grond.py View File

@ -446,15 +446,19 @@ def command_go(args):
parser, options, args = cl_parse('go', args, setup)
env = Environment(args)
try:
env = Environment(args)
grond.go(
env.get_config(),
event_names=env.get_selected_event_names(),
force=options.force,
preserve=options.preserve,
status=options.status,
nparallel=options.nparallel)
grond.go(
env.get_config(),
event_names=env.get_selected_event_names(),
force=options.force,
preserve=options.preserve,
status=options.status,
nparallel=options.nparallel)
except grond.GrondError as e:
die(str(e))
def command_forward(args):


Loading…
Cancel
Save