mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#541) Exporting well name as part of well info to LAS file
This commit is contained in:
parent
7bcbb80691
commit
3ecd6d8da7
@ -404,7 +404,7 @@ QString RimWellLogExtractionCurve::createCurveName()
|
||||
|
||||
if (m_addWellNameToCurveName && m_wellPath)
|
||||
{
|
||||
generatedCurveName += m_wellPath->name();
|
||||
generatedCurveName += wellName();
|
||||
}
|
||||
|
||||
if (m_addCaseNameToCurveName && m_case())
|
||||
@ -503,3 +503,11 @@ QString RimWellLogExtractionCurve::wellLogChannelName() const
|
||||
|
||||
return name;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellLogExtractionCurve::wellName() const
|
||||
{
|
||||
return m_wellPath->name();
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ public:
|
||||
void setWellPath(RimWellPath* wellPath);
|
||||
void setPropertiesFromView(RimView* view);
|
||||
|
||||
virtual QString wellName() const;
|
||||
virtual QString wellLogChannelName() const;
|
||||
|
||||
protected:
|
||||
|
@ -227,7 +227,7 @@ QString RimWellLogFileCurve::createCurveName()
|
||||
{
|
||||
QString txt;
|
||||
|
||||
txt += m_wellPath()->name();
|
||||
txt += wellName();
|
||||
txt += " : ";
|
||||
txt += m_wellLogChannnelName;
|
||||
|
||||
@ -256,3 +256,10 @@ QString RimWellLogFileCurve::wellLogChannelName() const
|
||||
return m_wellLogChannnelName;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellLogFileCurve::wellName() const
|
||||
{
|
||||
return m_wellPath->name();
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ public:
|
||||
|
||||
// Overrides from RimWellLogPlotCurve
|
||||
virtual void updatePlotData();
|
||||
virtual QString wellName() const;
|
||||
virtual QString wellLogChannelName() const;
|
||||
|
||||
protected:
|
||||
|
@ -61,6 +61,7 @@ public:
|
||||
void updateCurveName();
|
||||
void updatePlotTitle();
|
||||
|
||||
virtual QString wellName() const = 0;
|
||||
virtual QString wellLogChannelName() const = 0;
|
||||
virtual void updatePlotData() = 0;
|
||||
|
||||
|
@ -270,6 +270,7 @@ bool RigWellLogFile::exportToLasFile(const RimWellLogPlotCurve* curve, const QSt
|
||||
wellLogChannelName.replace(".", "_");
|
||||
|
||||
NRLib::LasWell lasFile;
|
||||
lasFile.addWellInfo(QString("WELL .%1 :").arg(curve->wellName()).toStdString());
|
||||
lasFile.AddLog("DEPTH", "M", "Depth in meters", curveData->measuredDepths());
|
||||
lasFile.AddLog(wellLogChannelName.toStdString(), "NO_UNIT", "", wellLogValues);
|
||||
lasFile.SetMissing(absentValue);
|
||||
|
Loading…
Reference in New Issue
Block a user