mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#886 LAS Export: Set the STEP if the data is resampled
This commit is contained in:
parent
8514664d06
commit
88e40aa2d9
@ -311,6 +311,10 @@ bool RigLasFileExporter::writeToFolder(const QString& exportFolder)
|
|||||||
lasFile.setVersionInfo("2.0");
|
lasFile.setVersionInfo("2.0");
|
||||||
|
|
||||||
lasFileDescr.appendDataToLasFile(&lasFile);
|
lasFileDescr.appendDataToLasFile(&lasFile);
|
||||||
|
if (m_isResampleActive)
|
||||||
|
{
|
||||||
|
lasFile.setDepthStep(m_resamplingInterval);
|
||||||
|
}
|
||||||
|
|
||||||
QDir dir(exportFolder);
|
QDir dir(exportFolder);
|
||||||
QString fileName = dir.absoluteFilePath(QString::fromStdString(lasFileDescr.generateFilename()));
|
QString fileName = dir.absoluteFilePath(QString::fromStdString(lasFileDescr.generateFilename()));
|
||||||
@ -402,7 +406,6 @@ void RigLasFileExporter::appendLasFileDescriptions(const std::vector<RimWellLogC
|
|||||||
QString m_wellName;
|
QString m_wellName;
|
||||||
QString m_caseName;
|
QString m_caseName;
|
||||||
QString m_date;
|
QString m_date;
|
||||||
double datumElevation;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<CurveCollectionDefinition> curveDefinitions;
|
std::vector<CurveCollectionDefinition> curveDefinitions;
|
||||||
|
5
ThirdParty/NRLib/nrlib/well/laswell.cpp
vendored
5
ThirdParty/NRLib/nrlib/well/laswell.cpp
vendored
@ -597,6 +597,11 @@ void NRLib::LasWell::setStopDepth(double stopDepth)
|
|||||||
stop_depth_ = stopDepth;
|
stop_depth_ = stopDepth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NRLib::LasWell::setDepthStep(double depthStep)
|
||||||
|
{
|
||||||
|
depth_increment_ = depthStep;
|
||||||
|
}
|
||||||
|
|
||||||
void NRLib::LasWell::addWellInfo(const std::string& parameter, const std::string& value)
|
void NRLib::LasWell::addWellInfo(const std::string& parameter, const std::string& value)
|
||||||
{
|
{
|
||||||
// Example of line formatting taken from the documentation
|
// Example of line formatting taken from the documentation
|
||||||
|
1
ThirdParty/NRLib/nrlib/well/laswell.hpp
vendored
1
ThirdParty/NRLib/nrlib/well/laswell.hpp
vendored
@ -61,6 +61,7 @@ public:
|
|||||||
void setVersionInfo(const std::string& logName);
|
void setVersionInfo(const std::string& logName);
|
||||||
void setStartDepth(double startDepth);
|
void setStartDepth(double startDepth);
|
||||||
void setStopDepth(double stopDepth);
|
void setStopDepth(double stopDepth);
|
||||||
|
void setDepthStep(double depthStep);
|
||||||
|
|
||||||
void addWellInfo(const std::string& parameter, const std::string& value);
|
void addWellInfo(const std::string& parameter, const std::string& value);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user