mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#498) Picking and displaying well log channel unit from LAS files
This commit is contained in:
@@ -172,3 +172,25 @@ QString RigWellLogFile::depthUnit() const
|
||||
|
||||
return unit;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RigWellLogFile::wellLogChannelUnit(const QString& wellLogChannelName) const
|
||||
{
|
||||
QString unit;
|
||||
|
||||
NRLib::LasWell* lasWell = dynamic_cast<NRLib::LasWell*>(m_wellLogFile);
|
||||
if (lasWell)
|
||||
{
|
||||
unit = QString::fromStdString(lasWell->unitName(wellLogChannelName.toStdString()));
|
||||
}
|
||||
|
||||
// Special handling of depth unit - we convert depth to meter
|
||||
if (unit == depthUnit())
|
||||
{
|
||||
return "m";
|
||||
}
|
||||
|
||||
return unit;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,7 @@ public:
|
||||
std::vector<double> values(const QString& name) const;
|
||||
|
||||
QString depthUnit() const;
|
||||
QString wellLogChannelUnit(const QString& wellLogChannelName) const;
|
||||
|
||||
private:
|
||||
void close();
|
||||
|
||||
Reference in New Issue
Block a user