mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
OpenVDS seismic access (#10145)
Add OpenVDS support for reading seismic data from VDS files
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user