bugfix: setParameters for shot not working, because survey needed parameters on init
This commit is contained in:
parent
ee16cef901
commit
490ad0f0c2
@ -21,11 +21,16 @@ class Survey(object):
|
|||||||
self._sourcefile = sourcefile
|
self._sourcefile = sourcefile
|
||||||
self._obsdir = path
|
self._obsdir = path
|
||||||
self._generateSurvey()
|
self._generateSurvey()
|
||||||
|
self._initiateFilenames()
|
||||||
if useDefaultParas == True:
|
if useDefaultParas == True:
|
||||||
self.setParametersForShots()
|
self.setParametersForShots()
|
||||||
self._removeAllEmptyTraces()
|
self._removeAllEmptyTraces()
|
||||||
self._updateShots()
|
self._updateShots()
|
||||||
self.setArtificialPick(0, 0)
|
|
||||||
|
def _initiateFilenames(self):
|
||||||
|
for shot in self.data.values():
|
||||||
|
shot.setRecfile(self.getPath() + self.getReceiverfile())
|
||||||
|
shot.setSourcefile(self.getPath() + self.getSourcefile())
|
||||||
|
|
||||||
def _generateSurvey(self):
|
def _generateSurvey(self):
|
||||||
from obspy.core import read
|
from obspy.core import read
|
||||||
@ -63,8 +68,6 @@ class Survey(object):
|
|||||||
shot.setTmovwind(tmovwind)
|
shot.setTmovwind(tmovwind)
|
||||||
shot.setTsignal(tsignal)
|
shot.setTsignal(tsignal)
|
||||||
shot.setTgap(tgap)
|
shot.setTgap(tgap)
|
||||||
shot.setRecfile(self.getPath() + self.getReceiverfile())
|
|
||||||
shot.setSourcefile(self.getPath() + self.getSourcefile())
|
|
||||||
shot.setOrder(order = 4)
|
shot.setOrder(order = 4)
|
||||||
print ("setParametersForShots: Parameters set to:\n"
|
print ("setParametersForShots: Parameters set to:\n"
|
||||||
"cutwindow = %s, tMovingWindow = %f, tsignal = %f, tgap = %f"
|
"cutwindow = %s, tMovingWindow = %f, tsignal = %f, tgap = %f"
|
||||||
|
Loading…
Reference in New Issue
Block a user