Compare commits
No commits in common. "5289be55dd7c5f1350a00b2979fc038bc1f4c193" and "c9bd0a147c7b3665bde0ced815f020170279c3ca" have entirely different histories.
5289be55dd
...
c9bd0a147c
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env pyth n
|
||||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import copy
|
||||
@ -353,14 +353,6 @@ class Data(object):
|
||||
header = '# EQEVENT: Label: EQ%s Loc: X 0.00 Y 0.00 Z 10.00 OT 0.00 \n' % evid
|
||||
nllocfile = open(fnout + fnext)
|
||||
l = nllocfile.readlines()
|
||||
# Adding A0/Generic Amplitude to .obs file
|
||||
l2 = []
|
||||
for li in l:
|
||||
for amp in evtdata_org.amplitudes:
|
||||
if amp.waveform_id.station_code == li[0:5].strip():
|
||||
li = li[0:64] + '{:0.2e}'.format(amp.generic_amplitude) + li[73:-1] + '\n'
|
||||
l2.append(li)
|
||||
l = l2
|
||||
nllocfile.close()
|
||||
l.insert(0, header)
|
||||
nllocfile = open(fnout + fnext, 'w')
|
||||
|
Loading…
Reference in New Issue
Block a user