(#541) Setting version info, start and stop depths, and depth unit, when exporting to LAS

This commit is contained in:
Pål Hagen 2015-10-15 16:12:22 +02:00
parent 33a32c9c1a
commit 2dd1e98f81

View File

@ -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);