restituteWFData: More output for user.
This commit is contained in:
parent
96395f6a1a
commit
3e164fd0c6
@ -146,8 +146,12 @@ class Data(object):
|
|||||||
self.wfdata = self.getOriginalWFData().copy()
|
self.wfdata = self.getOriginalWFData().copy()
|
||||||
self.dirty = False
|
self.dirty = False
|
||||||
|
|
||||||
def restituteWFData(self, invdlpath):
|
def restituteWFData(self, invdlpath, streams=None):
|
||||||
st = self.getWFData()
|
if streams == None:
|
||||||
|
st = self.getWFData()
|
||||||
|
else:
|
||||||
|
st = streams
|
||||||
|
|
||||||
for tr in st:
|
for tr in st:
|
||||||
# remove underscores
|
# remove underscores
|
||||||
if tr.stats.station[3] == '_':
|
if tr.stats.station[3] == '_':
|
||||||
@ -164,7 +168,7 @@ class Data(object):
|
|||||||
print "Found dataless-SEED file(s)!"
|
print "Found dataless-SEED file(s)!"
|
||||||
print "Reading meta data information ..."
|
print "Reading meta data information ..."
|
||||||
for j in range(len(dlfile)):
|
for j in range(len(dlfile)):
|
||||||
print dlfile[j]
|
print "Found dataless-SEED file %s" % dlfile[j]
|
||||||
parser = Parser('%s' % dlfile[j])
|
parser = Parser('%s' % dlfile[j])
|
||||||
for i in range(len(st)):
|
for i in range(len(st)):
|
||||||
# check, whether this trace has already been corrected
|
# check, whether this trace has already been corrected
|
||||||
@ -192,7 +196,7 @@ class Data(object):
|
|||||||
print "Found inventory-xml file(s)!"
|
print "Found inventory-xml file(s)!"
|
||||||
print "Reading meta data information ..."
|
print "Reading meta data information ..."
|
||||||
for j in range(len(invfile)):
|
for j in range(len(invfile)):
|
||||||
print invfile[j]
|
print "Found inventory-xml file %s" % invfile[j]
|
||||||
inv = read_inventory(invfile[j], format="STATIONXML")
|
inv = read_inventory(invfile[j], format="STATIONXML")
|
||||||
for i in range(len(st)):
|
for i in range(len(st)):
|
||||||
# check, whether this trace has already been corrected
|
# check, whether this trace has already been corrected
|
||||||
@ -220,7 +224,7 @@ class Data(object):
|
|||||||
print "Found response file(s)!"
|
print "Found response file(s)!"
|
||||||
print "Reading meta data information ..."
|
print "Reading meta data information ..."
|
||||||
for j in range(len(respfile)):
|
for j in range(len(respfile)):
|
||||||
print respfile[j]
|
print "Found RESP-file %s" % respfile[j]
|
||||||
for i in range(len(st)):
|
for i in range(len(st)):
|
||||||
# check, whether this trace has already been corrected
|
# check, whether this trace has already been corrected
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user