Modified loop over all available stations to prevent processing of one station several times.

This commit is contained in:
Ludger Küperkoch 2015-06-01 14:15:37 +02:00
parent 74682952e7
commit c676fc5762

View File

@ -12,6 +12,7 @@ from pylot.core.util import _getVersionString
from pylot.core.read import Data, AutoPickParameter from pylot.core.read import Data, AutoPickParameter
from pylot.core.pick.run_autopicking import run_autopicking from pylot.core.pick.run_autopicking import run_autopicking
from pylot.core.util.structure import DATASTRUCTURE from pylot.core.util.structure import DATASTRUCTURE
import pdb
__version__ = _getVersionString() __version__ = _getVersionString()
@ -72,8 +73,12 @@ def autoPyLoT(inputfile):
########################################################## ##########################################################
# !automated picking starts here! # !automated picking starts here!
for i in range(len(wfdat) - 2): procstats = []
for i in range(len(wfdat)):
stationID = wfdat[i].stats.station stationID = wfdat[i].stats.station
#check if station has already been processed
if stationID not in procstats:
procstats.append(stationID)
#find corresponding streams #find corresponding streams
statdat = wfdat.select(station=stationID) statdat = wfdat.select(station=stationID)
run_autopicking(statdat, parameter) run_autopicking(statdat, parameter)