mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#541) Setting version info, start and stop depths, and depth unit, when exporting to LAS
This commit is contained in:
parent
33a32c9c1a
commit
2dd1e98f81
@ -270,10 +270,19 @@ bool RigWellLogFile::exportToLasFile(const RimWellLogPlotCurve* curve, const QSt
|
||||
wellLogChannelName.replace(".", "_");
|
||||
|
||||
NRLib::LasWell lasFile;
|
||||
lasFile.AddLog("DEPTH", "m", "Depth [m]", curveData->yValues());
|
||||
lasFile.AddLog(wellLogChannelName.toStdString(), "NO_UNIT", "PARAMETERINFO", wellLogValues);
|
||||
lasFile.AddLog("DEPTH", "M", "Depth [M]", curveData->yValues());
|
||||
lasFile.AddLog(wellLogChannelName.toStdString(), "NO_UNIT", "", wellLogValues);
|
||||
lasFile.SetMissing(absentValue);
|
||||
|
||||
double minDepth, maxDepth;
|
||||
curve->depthRange(&minDepth, &maxDepth);
|
||||
|
||||
lasFile.setStartDepth(minDepth);
|
||||
lasFile.setStopDepth(maxDepth);
|
||||
lasFile.setDepthUnit("M");
|
||||
|
||||
lasFile.setVersionInfo("2.0");
|
||||
|
||||
std::vector<std::string> commentHeader;
|
||||
lasFile.WriteToFile(fileName.toStdString(), commentHeader);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user