mirror of
https://github.com/wassname/segpy.git
synced 2026-06-30 17:07:52 +08:00
Some bad shifting og seismogram for IBM floats
This commit is contained in:
@@ -548,10 +548,10 @@ def getValue(data,index,ctype='l',endian='>',number=1):
|
||||
# ASSUME IBM FLOAT DATA
|
||||
Value = range(number)
|
||||
for i in arange(number):
|
||||
index=i*4
|
||||
Value[i] = ibm2ieee2(data[index:index+4])
|
||||
if Value[i]>100:
|
||||
Value[i]=0
|
||||
index=i*4
|
||||
Value[i] = ibm2ieee2(data[index:index+4])
|
||||
# if Value[i]>100:
|
||||
# Value[i]=0
|
||||
# if Value[i]<-100:
|
||||
# Value[i]=0
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user