2015-09-15 11:07:53 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-09-15 11:07:53 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-09-15 11:07:53 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-09-15 11:07:53 -05:00
|
|
|
// 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-09-15 11:07:53 -05:00
|
|
|
#include "cvfObject.h"
|
|
|
|
|
|
|
|
#include <QStringList>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace NRLib
|
|
|
|
{
|
2019-09-06 03:40:57 -05:00
|
|
|
class Well;
|
2015-09-15 11:07:53 -05:00
|
|
|
}
|
|
|
|
|
2015-11-04 09:19:38 -06:00
|
|
|
class RimWellLogCurve;
|
2015-09-15 11:07:53 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2015-09-15 11:07:53 -05:00
|
|
|
//==================================================================================================
|
|
|
|
class RigWellLogFile : public cvf::Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
RigWellLogFile();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RigWellLogFile() override;
|
2015-09-15 11:07:53 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
bool open( const QString& fileName, QString* errorMessage );
|
2015-09-15 11:07:53 -05:00
|
|
|
|
|
|
|
QString wellName() const;
|
2017-10-02 02:40:33 -05:00
|
|
|
QString date() const;
|
2015-09-16 09:20:07 -05:00
|
|
|
QStringList wellLogChannelNames() const;
|
2015-09-15 11:07:53 -05:00
|
|
|
|
|
|
|
std::vector<double> depthValues() const;
|
2017-10-16 01:38:38 -05:00
|
|
|
std::vector<double> tvdMslValues() const;
|
2020-01-22 06:20:18 -06:00
|
|
|
std::vector<double> tvdRkbValues() const;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
std::vector<double> values( const QString& name ) const;
|
2015-09-15 11:07:53 -05:00
|
|
|
|
2020-02-12 04:43:15 -06:00
|
|
|
QString wellLogChannelUnitString( const QString& wellLogChannelName, RiaDefines::DepthUnitType displayDepthUnit ) const;
|
2020-01-29 05:52:07 -06:00
|
|
|
QString wellLogChannelUnitString( const QString& wellLogChannelName ) const;
|
2017-06-13 08:41:52 -05:00
|
|
|
RiaDefines::DepthUnitType depthUnit() const;
|
2015-09-18 06:43:56 -05:00
|
|
|
|
2020-01-22 06:20:18 -06:00
|
|
|
bool hasTvdMslChannel() const;
|
|
|
|
bool hasTvdRkbChannel() const;
|
2017-10-16 01:38:38 -05:00
|
|
|
|
2015-09-15 11:07:53 -05:00
|
|
|
private:
|
2015-12-02 06:49:36 -06:00
|
|
|
void close();
|
|
|
|
QString depthUnitString() const;
|
2015-09-15 11:07:53 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
NRLib::Well* m_wellLogFile;
|
|
|
|
QStringList m_wellLogChannelNames;
|
|
|
|
QString m_depthLogName;
|
|
|
|
QString m_tvdMslLogName;
|
2020-01-22 06:20:18 -06:00
|
|
|
QString m_tvdRkbLogName;
|
2015-09-15 11:07:53 -05:00
|
|
|
};
|