Create features to append plots with RFT curves (#9200)

* Add create plot with RFT curve
* Add RFT segment plot with curve
* Create tracks for all three branch types

* Make sure the zero is displayed when adjusted minimum is changing sign
This commit is contained in:
Magne Sjaastad
2022-08-17 10:04:10 +02:00
committed by GitHub
parent 1507894066
commit 597a3d1f97
14 changed files with 412 additions and 10 deletions

View File

@@ -327,6 +327,7 @@ void RimWellLogRftCurve::setRftAddress( RifEclipseRftAddress address )
m_rftDataType = RftDataType::RFT_SEGMENT_DATA;
m_segmentResultName = address.segmentResultName();
m_segmentBranchIndex = address.segmentBranchIndex();
m_segmentBranchType = address.segmentBranchType();
}
else
{

View File

@@ -2138,9 +2138,13 @@ std::pair<double, double> RimWellLogTrack::extendMinMaxRange( double minValue, d
auto candidateMinValue = minValue - factor * range;
if ( std::signbit( minValue ) == std::signbit( candidateMinValue ) )
{
// Leave minimum unchanged if the changes causes change of sign to make sure that zero is located properly
modifiedMin = candidateMinValue;
}
else
{
// If the sign of the adjusted minimum changes, set minimum to zero to make sure that zero is located properly
modifiedMin = 0.0;
}
return { modifiedMin, modifiedMax };
}