OpenVDS seismic access (#10145)

Add OpenVDS support for reading seismic data from VDS files
This commit is contained in:
jonjenssen
2023-04-21 16:38:04 +02:00
committed by GitHub
parent 25e78e9792
commit 0e7cf49b17
17 changed files with 840 additions and 77 deletions

View File

@@ -37,6 +37,7 @@ RifSeismicZGYReader::RifSeismicZGYReader()
//--------------------------------------------------------------------------------------------------
RifSeismicZGYReader::~RifSeismicZGYReader()
{
close();
}
//--------------------------------------------------------------------------------------------------
@@ -44,7 +45,7 @@ RifSeismicZGYReader::~RifSeismicZGYReader()
//--------------------------------------------------------------------------------------------------
bool RifSeismicZGYReader::open( QString filename )
{
if ( isOpen() ) close();
close();
m_filename = filename;
@@ -124,30 +125,6 @@ std::vector<std::pair<QString, QString>> RifSeismicZGYReader::metaData()
return retValues;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
cvf::BoundingBox RifSeismicZGYReader::boundingBox()
{
cvf::BoundingBox retBox;
if ( isOpen() )
{
auto [zmin, zmax] = m_reader->zRange();
auto outline = m_reader->seismicWorldOutline();
auto corners = outline.points();
for ( auto p : corners )
{
retBox.add( cvf::Vec3d( p.x(), p.y(), -zmin ) );
retBox.add( cvf::Vec3d( p.x(), p.y(), -zmax ) );
}
}
return retBox;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------