mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-10 08:03:05 -06:00
#5590 Plot LAS-curves with correct TVDRKB depth even if file does not have a TVDRKB track
This commit is contained in:
parent
622b0bc873
commit
9ed054e28c
@ -108,6 +108,19 @@ void RimWellLogFileCurve::onLoadDataAndUpdate( bool updateParentPlot )
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( tvdRkbValues.size() != values.size() )
|
||||
{
|
||||
RigWellPath* rigWellPath = m_wellPath->wellPathGeometry();
|
||||
if ( rigWellPath )
|
||||
{
|
||||
tvdRkbValues.clear();
|
||||
for ( double measuredDepthValue : measuredDepthValues )
|
||||
{
|
||||
tvdRkbValues.push_back( -rigWellPath->interpolatedPointAlongWellPath( measuredDepthValue ).z() +
|
||||
m_wellPath->wellPathGeometry()->rkbDiff() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::map<RiaDefines::DepthTypeEnum, std::vector<double>> validDepths;
|
||||
if ( values.size() == measuredDepthValues.size() )
|
||||
|
Loading…
Reference in New Issue
Block a user