[change] replace NaN's in HOScf by first NaN value instead of zero
This commit is contained in:
parent
0852bf0f80
commit
5648fc1870
@ -296,9 +296,11 @@ class HOScf(CharacteristicFunction):
|
|||||||
elif self.getOrder() == 4:
|
elif self.getOrder() == 4:
|
||||||
LTA[j] = lta / np.power(lta1, 2)
|
LTA[j] = lta / np.power(lta1, 2)
|
||||||
|
|
||||||
nn = np.isnan(LTA)
|
# remove NaN's with first not-NaN-value,
|
||||||
if len(nn) > 1:
|
# so autopicker doesnt pick discontinuity at start of the trace
|
||||||
LTA[nn] = 0
|
ind = np.where(~np.isnan(LTA))[0]
|
||||||
|
first = ind[0]
|
||||||
|
LTA[:first] = LTA[first]
|
||||||
self.cf = LTA
|
self.cf = LTA
|
||||||
self.xcf = x
|
self.xcf = x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user