[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Octave fails after a certain number of calls to ReadSegy
From: |
wbpramik |
Subject: |
Octave fails after a certain number of calls to ReadSegy |
Date: |
Fri, 20 Mar 2020 15:57:29 -0500 (CDT) |
Hi
I have a program that reads SEGY data (using SegyMat) that fails after a
certain number of calls to ReadSegy. The number of calls before failure is
between 502 and 506 depending on the version of the program I am trying to
run.
I created a simplified version of the program below:
clear
#
# load the segy package
#
pkg load signal;
addpath ('C:\Users\wbpra\Downloads\segymat-1.6\segymat-1.6', '-begin')
addpath ('C:\Users\\wbpra\Downloads\segymat-1.6\segymat-1.6\GUI', '-begin')
datadir =
'C:\Users\wbpra\OneDrive\Documents\2019\Projects\Axxis\Notionals\SEGY\Full
List\';
#
AJJ = 0
[Data1,SegyTraceHeaders,SegyHeader] =
ReadSegy(fullfile(datadir,'NFH_FFID_684457_Gun2.segy'));
AJJ = AJJ + 1
[Data2,SegyTraceHeaders,SegyHeader] =
ReadSegy(fullfile(datadir,'NFH_FFID_684457_Gun3.segy'));
AJJ = AJJ + 1
[Data3,SegyTraceHeaders,SegyHeader] =
ReadSegy(fullfile(datadir,'NFH_FFID_684457_Gun4.segy'));
AJJ = AJJ + 1
[Data4,SegyTraceHeaders,SegyHeader] =
ReadSegy(fullfile(datadir,'NFH_FFID_684457_Gun5.segy'));
AJJ = AJJ + 1
.
.
.
and so on for 1500 calls to ReadSegy
In this version, after 506 calls the program fails with the following error
message:
error: load: unable to open input file 'SegyMAT_Rev'
error: called from
GetSegyHeaderBasics at line 34 column 5
GetSegyHeader at line 91 column 15
ReadSegy at line 269 column 15
tull2 at line 1026 column 39
I think this may be a memory related problem.
I'm running Octave 5.1.0 and have SegyMat-1.6 loaded on a Windows 10
machine.
Any ideas?
Thanks
Bill
--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Octave fails after a certain number of calls to ReadSegy,
wbpramik <=