Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Open VDS
Commits
d4d7355f
Commit
d4d7355f
authored
Oct 13, 2021
by
Jim King
Committed by
Jørgen Lind
Oct 28, 2021
Browse files
port implementation for crossline-sorted SEGY import
parent
4fec8c14
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
src/SEGYUtils/SEGYFileInfo.cpp
View file @
d4d7355f
...
...
@@ -240,7 +240,7 @@ SEGYFileInfo::Scan(const std::vector<DataProvider>& dataProviders, OpenVDS::Erro
SEGYBinInfo
outsideBinInfo
;
int
primaryKey
=
ReadFieldFromHeader
(
traceHeader
,
primaryKeyHeaderField
,
m_headerEndianness
),
nextPrimaryKey
=
0
;
int
primaryKey
=
Is2D
()
?
0
:
ReadFieldFromHeader
(
traceHeader
,
primaryKeyHeaderField
,
m_headerEndianness
),
nextPrimaryKey
=
0
;
SEGYSegmentInfo
segmentInfo
(
primaryKey
,
0
,
readBinInfoFromHeader
(
traceHeader
,
binInfoHeaderFields
,
m_headerEndianness
,
1
));
...
...
@@ -262,7 +262,7 @@ SEGYFileInfo::Scan(const std::vector<DataProvider>& dataProviders, OpenVDS::Erro
}
readCount
++
;
primaryKey
=
ReadFieldFromHeader
(
traceHeader
,
primaryKeyHeaderField
,
m_headerEndianness
);
primaryKey
=
Is2D
()
?
0
:
ReadFieldFromHeader
(
traceHeader
,
primaryKeyHeaderField
,
m_headerEndianness
);
testOffset
=
readOffset
(
traceHeader
);
if
(
primaryKey
==
segmentInfo
.
m_primaryKey
&&
(
!
IsOffsetSorted
()
||
testOffset
==
currentOffset
))
// expand current segment if the primary key matches
...
...
tools/SEGYImport/SEGYImport.cpp
View file @
d4d7355f
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment