From 23446f6e81423b7faef2a77bf64938c67def7c19 Mon Sep 17 00:00:00 2001 From: cultpenguin Date: Tue, 10 May 2005 16:42:43 +0000 Subject: [PATCH] Some bad shifting og seismogram for IBM floats --- segypy.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/segypy.py b/segypy.py index a1788be..ae24c4f 100644 --- a/segypy.py +++ b/segypy.py @@ -548,10 +548,10 @@ def getValue(data,index,ctype='l',endian='>',number=1): for i in arange(number): index=i*4 Value[i] = ibm2ieee2(data[index:index+4]) - if Value[i]>100: - Value[i]=0 - if Value[i]<-100: - Value[i]=0 +# if Value[i]>100: +# Value[i]=0 +# if Value[i]<-100: +# Value[i]=0 else: # ALL OTHER TYPES OF DATA Value=struct.unpack(cformat, data[index:index_end])