LasWell. Parse DATE token from LAS well information section

This commit is contained in:
Bjørn Erik Jensen 2017-09-29 15:44:50 +02:00
parent 141bfd27d7
commit 19e5e61cb7
3 changed files with 16 additions and 1 deletions

View File

@ -286,7 +286,11 @@ LasWell::ParseWellToken(const std::string & token,
if(value.empty() == false)
SetWellName(value);
}
else if (token == "DATE")
{
if (value.empty() == false)
SetDate(value);
}
else if(token == "STRT" || token == "STOP" || token == "STEP" ||
token == "NULL" || token == "XWELL" || token == "YWELL")
{

View File

@ -244,6 +244,10 @@ void Well::SetWellName(const std::string& wellname)
well_name_ = wellname;
}
void Well::SetDate(const std::string& date)
{
date_ = date;
}
bool Well::IsMissing(double x)const
{

View File

@ -96,6 +96,11 @@ namespace NRLib {
void SetWellName(const std::string& wellname);
///
const std::string& GetWellName() const { return well_name_; };
/// Set name of well
void SetDate(const std::string& wellname);
///
const std::string& GetDate() const { return date_; };
/// Return true if x is missing
bool IsMissing(double x) const;
/// Return true if n is missing
@ -193,6 +198,8 @@ namespace NRLib {
std::map<std::string,std::vector<double> > cont_log_background_resolution_;
/// Name of well
std::string well_name_;
/// Date
std::string date_;
/// Missing value for continous logs.
double well_rmissing_;
/// Missing value for discrete logs.