You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to use the testsegy.py to read segy file.But got an TypeError below.
read segy:
SegyPY 0.2 : readSegy : Trying to read GTZ_p14_p19.sgy
812417984
SegyPY 0.2 : getSegyHeader : succesfully read GTZ_p14_p19.sgy
F:\convLstm\segypy.py in readSegy(filename)
531
532 printverbose("readSegy : Trying to read "+filename,0)
--> 533
534 data = open(filename,'rb').read()
535
F:\convLstm\segypy.py in getAllSegyTraceHeaders(SH, data)
488 # AND THE TRACE NUMBER KEY FIELD
489 THpos=STH_def[THN]["pos"]
--> 490 THformat=STH_def[THN]["type"]
491 ntraces=SH["ntraces"]
492
F:\convLstm\segypy.py in getSegyTraceHeader(SH, THN, data)
461 for itrace in range(1,int(ntraces+1),1):
462 i=itrace
--> 463
464 pos=THpos+3600+(SH["ns"]bps+240)(itrace-1);
465
TypeError: 'float' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered:
I was trying to use the testsegy.py to read segy file.But got an TypeError below.
read segy:
SegyPY 0.2 : readSegy : Trying to read GTZ_p14_p19.sgy
812417984
SegyPY 0.2 : getSegyHeader : succesfully read GTZ_p14_p19.sgy
TypeError Traceback (most recent call last)
F:\convLstm\fft.py in ()
8 start = time.time()
9 print(' read segy: ')
---> 10 Data, SH, STH = segypy.readSegy('GTZ_p14_p19.sgy')
11 print(time.time()-start)
12 start = time.time()
F:\convLstm\segypy.py in readSegy(filename)
531
532 printverbose("readSegy : Trying to read "+filename,0)
--> 533
534 data = open(filename,'rb').read()
535
F:\convLstm\segypy.py in getAllSegyTraceHeaders(SH, data)
488 # AND THE TRACE NUMBER KEY FIELD
489 THpos=STH_def[THN]["pos"]
--> 490 THformat=STH_def[THN]["type"]
491 ntraces=SH["ntraces"]
492
F:\convLstm\segypy.py in getSegyTraceHeader(SH, THN, data)
461 for itrace in range(1,int(ntraces+1),1):
462 i=itrace
--> 463
464 pos=THpos+3600+(SH["ns"]bps+240)(itrace-1);
465
TypeError: 'float' object cannot be interpreted as an integer
The text was updated successfully, but these errors were encountered: