2015-10-15 04:27:12 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
|
|
|
//
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
#include "RiaDefines.h"
|
2015-12-02 05:19:35 -06:00
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
#include "cvfBase.h"
|
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2015-10-15 05:41:12 -05:00
|
|
|
class RigWellLogCurveDataTestInterface;
|
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RigWellLogCurveData : public cvf::Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RigWellLogCurveData();
|
|
|
|
virtual ~RigWellLogCurveData();
|
|
|
|
|
2015-10-27 08:44:53 -05:00
|
|
|
void setValuesAndMD(const std::vector<double>& xValues,
|
2015-10-28 09:18:53 -05:00
|
|
|
const std::vector<double>& measuredDepths,
|
2017-06-13 08:41:52 -05:00
|
|
|
RiaDefines::DepthUnitType depthUnit,
|
2015-10-29 08:36:10 -05:00
|
|
|
bool isExtractionCurve);
|
2015-12-02 05:19:35 -06:00
|
|
|
|
2015-10-27 08:44:53 -05:00
|
|
|
void setValuesWithTVD(const std::vector<double>& xValues,
|
|
|
|
const std::vector<double>& measuredDepths,
|
2015-12-02 05:19:35 -06:00
|
|
|
const std::vector<double>& tvDepths,
|
2017-10-12 06:37:03 -05:00
|
|
|
RiaDefines::DepthUnitType depthUnit,
|
|
|
|
bool isExtractionCurve);
|
2015-10-15 04:27:12 -05:00
|
|
|
|
2015-10-27 08:44:53 -05:00
|
|
|
const std::vector<double>& xValues() const;
|
|
|
|
const std::vector<double>& measuredDepths() const;
|
2016-09-12 09:43:31 -05:00
|
|
|
const std::vector<double>& tvDepths() const;
|
2015-10-27 08:44:53 -05:00
|
|
|
bool calculateMDRange(double* minMD, double* maxMD) const;
|
2015-10-15 04:27:12 -05:00
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
RiaDefines::DepthUnitType depthUnit() const;
|
2015-12-02 05:19:35 -06:00
|
|
|
|
2015-10-27 08:44:53 -05:00
|
|
|
std::vector<double> xPlotValues() const;
|
2017-06-13 08:41:52 -05:00
|
|
|
std::vector<double> trueDepthPlotValues(RiaDefines::DepthUnitType destinationDepthUnit) const;
|
|
|
|
std::vector<double> measuredDepthPlotValues(RiaDefines::DepthUnitType destinationDepthUnit) const;
|
2015-10-27 08:44:53 -05:00
|
|
|
std::vector< std::pair<size_t, size_t> > polylineStartStopIndices() const;
|
2015-10-15 04:27:12 -05:00
|
|
|
|
2016-09-19 04:17:36 -05:00
|
|
|
cvf::ref<RigWellLogCurveData> calculateResampledCurveData(double newMeasuredDepthStepSize) const;
|
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
private:
|
2015-10-27 08:44:53 -05:00
|
|
|
void calculateIntervalsOfContinousValidValues();
|
2015-10-15 04:27:12 -05:00
|
|
|
|
2015-10-27 08:44:53 -05:00
|
|
|
static void splitIntervalAtEmptySpace(const std::vector<double>& depthValues,
|
|
|
|
size_t startIdx, size_t stopIdx,
|
|
|
|
std::vector< std::pair<size_t, size_t> >* intervals);
|
2015-12-02 06:39:16 -06:00
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
std::vector<double> convertDepthValues(RiaDefines::DepthUnitType destinationDepthUnit, const std::vector<double>& originalValues) const;
|
2015-12-02 06:39:16 -06:00
|
|
|
|
|
|
|
static std::vector<double> convertFromMeterToFeet(const std::vector<double>& valuesInMeter);
|
|
|
|
static std::vector<double> convertFromFeetToMeter(const std::vector<double>& valuesInFeet);
|
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
private:
|
2015-10-27 08:44:53 -05:00
|
|
|
std::vector<double> m_xValues;
|
|
|
|
std::vector<double> m_measuredDepths;
|
|
|
|
std::vector<double> m_tvDepths;
|
2015-10-29 08:36:10 -05:00
|
|
|
bool m_isExtractionCurve;
|
2015-10-15 16:12:18 -05:00
|
|
|
|
2015-10-27 08:44:53 -05:00
|
|
|
std::vector< std::pair<size_t, size_t> > m_intervalsOfContinousValidValues;
|
2015-12-02 05:19:35 -06:00
|
|
|
|
2017-06-13 08:41:52 -05:00
|
|
|
RiaDefines::DepthUnitType m_depthUnit;
|
2015-10-15 05:41:12 -05:00
|
|
|
};
|
|
|
|
|