diff --git a/ApplicationCode/ReservoirDataModel/RigWellLogFile.cpp b/ApplicationCode/ReservoirDataModel/RigWellLogFile.cpp index 222fc6257a..f565d0d8c1 100644 --- a/ApplicationCode/ReservoirDataModel/RigWellLogFile.cpp +++ b/ApplicationCode/ReservoirDataModel/RigWellLogFile.cpp @@ -25,6 +25,8 @@ #include #include +#define RIG_WELL_FOOTPERMETER 3.2808399 + //-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- @@ -134,6 +136,21 @@ std::vector RigWellLogFile::values(const QString& name) const if (m_wellLogFile->HasContLog(name.toStdString())) { + if (depthUnit().toUpper() == "FT") + { + std::vector footValues = m_wellLogFile->GetContLog(name.toStdString()); + + std::vector meterValues; + meterValues.reserve(footValues.size()); + + for (size_t vIdx = 0; vIdx < footValues.size(); vIdx++) + { + meterValues.push_back(footValues[vIdx]/RIG_WELL_FOOTPERMETER); + } + + return meterValues; + } + return m_wellLogFile->GetContLog(name.toStdString()); }