Started implementing saving peak-to-peak amplitude in .obs file

This commit is contained in:
Ludger Küperkoch 2020-12-10 12:50:33 +01:00
parent f40d22af33
commit 21453159b7

View File

@ -572,7 +572,9 @@ def writephases(arrivals, fformat, filename, parameter=None, eventinfo=None):
sweight = 0 # do not use pick sweight = 0 # do not use pick
except KeyError as e: except KeyError as e:
print(str(e) + '; no weight set during processing') print(str(e) + '; no weight set during processing')
fid.write('%s ? ? ? S %s %d%02d%02d %02d%02d %7.4f GAU 0 0 0 0 %d \n' % (key, Ao = arrivals[key]['S']['Ao'] # peak-to-peak amplitude
#fid.write('%s ? ? ? S %s %d%02d%02d %02d%02d %7.4f GAU 0 0 0 0 %d \n' % (key,
fid.write('%s ? ? ? S %s %d%02d%02d %02d%02d %7.4f GAU 0 %9.2f 0 0 %d \n' % (key,
fm, fm,
year, year,
month, month,
@ -580,6 +582,7 @@ def writephases(arrivals, fformat, filename, parameter=None, eventinfo=None):
hh, hh,
mm, mm,
ss_ms, ss_ms,
Ao,
sweight)) sweight))
fid.close() fid.close()