#7488 RFT plot: Estimate MD/TVD for two or more observations

Not possible to estimate MD/TVD relationship for less than two samples
This commit is contained in:
Magne Sjaastad 2021-03-29 08:40:51 +02:00
parent 2f43a64d36
commit 7cf2ed2e8c

View File

@ -1047,6 +1047,10 @@ bool RimWellLogRftCurve::deriveMeasuredDepthFromObservedData( const std::vector<
reader->values( tvdAddress, &tvdValuesOfObservedData );
reader->values( mdAddress, &mdValuesOfObservedData );
// We are not able to estimate MD/TVD relationship for less than two samples
if ( tvdValuesOfObservedData.size() < 2 ) return false;
derivedMDValues = RigWellPathGeometryTools::interpolateMdFromTvd( mdValuesOfObservedData,
tvdValuesOfObservedData,
tvDepthValues );