[reformat] reformatted indentation
This commit is contained in:
parent
3cbb6138e0
commit
70f2761003
@ -942,12 +942,12 @@ def writephases(arrivals, fformat, filename):
|
|||||||
|
|
||||||
:param: arrivals
|
:param: arrivals
|
||||||
:type: dictionary containing all phase information including
|
:type: dictionary containing all phase information including
|
||||||
station ID, phase, first motion, weight (uncertainty),
|
station ID, phase, first motion, weight (uncertainty),
|
||||||
....
|
....
|
||||||
|
|
||||||
:param: fformat
|
:param: fformat
|
||||||
:type: string, chosen file format (location routine),
|
:type: string, chosen file format (location routine),
|
||||||
choose between NLLoc, HYPO71, HYPOSAT, VELEST,
|
choose between NLLoc, HYPO71, HYPOSAT, VELEST,
|
||||||
HYPOINVERSE, and hypoDD
|
HYPOINVERSE, and hypoDD
|
||||||
|
|
||||||
:param: filename, full path and name of phase file
|
:param: filename, full path and name of phase file
|
||||||
@ -956,7 +956,7 @@ def writephases(arrivals, fformat, filename):
|
|||||||
|
|
||||||
|
|
||||||
if fformat == 'NLLoc':
|
if fformat == 'NLLoc':
|
||||||
print ("Writing phases to %s for NLLoc" % filename)
|
print ("Writing phases to %s for NLLoc" % filename)
|
||||||
fid = open("%s" % filename, 'w')
|
fid = open("%s" % filename, 'w')
|
||||||
# write header
|
# write header
|
||||||
fid.write('# EQEVENT: Label: EQ001 Loc: X 0.00 Y 0.00 Z 10.00 OT 0.00 \n')
|
fid.write('# EQEVENT: Label: EQ001 Loc: X 0.00 Y 0.00 Z 10.00 OT 0.00 \n')
|
||||||
@ -1017,7 +1017,7 @@ def writephases(arrivals, fformat, filename):
|
|||||||
fid.close()
|
fid.close()
|
||||||
|
|
||||||
elif fformat == 'HYPO71':
|
elif fformat == 'HYPO71':
|
||||||
print ("Writing phases to %s for HYPO71" % filename)
|
print ("Writing phases to %s for HYPO71" % filename)
|
||||||
fid = open("%s" % filename, 'w')
|
fid = open("%s" % filename, 'w')
|
||||||
# write header
|
# write header
|
||||||
fid.write(' EQ001\n')
|
fid.write(' EQ001\n')
|
||||||
@ -1025,8 +1025,8 @@ def writephases(arrivals, fformat, filename):
|
|||||||
if arrivals[key]['P']['weight'] < 4:
|
if arrivals[key]['P']['weight'] < 4:
|
||||||
Ponset = arrivals[key]['P']['mpp']
|
Ponset = arrivals[key]['P']['mpp']
|
||||||
Sonset = arrivals[key]['S']['mpp']
|
Sonset = arrivals[key]['S']['mpp']
|
||||||
pweight = arrivals[key]['P']['weight']
|
pweight = arrivals[key]['P']['weight']
|
||||||
sweight = arrivals[key]['S']['weight']
|
sweight = arrivals[key]['S']['weight']
|
||||||
fm = arrivals[key]['P']['fm']
|
fm = arrivals[key]['P']['fm']
|
||||||
if fm is None:
|
if fm is None:
|
||||||
fm = '-'
|
fm = '-'
|
||||||
@ -1088,7 +1088,7 @@ def writephases(arrivals, fformat, filename):
|
|||||||
Ao))
|
Ao))
|
||||||
|
|
||||||
fid.close()
|
fid.close()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import doctest
|
import doctest
|
||||||
|
Loading…
Reference in New Issue
Block a user