Log I/O
LasUtil Class Reference

Convenience methods for extracting information from LAS files. More...

Static Public Member Functions

static double ComputeStep (LasFile lasFile)
 Based on the index curve, Compute the step value as it will be reported in the STEP parameter in the well section. More...
 
static double[] FindStep (LasFile lasFile)
 Find actual step value of the specified LAS file, being the distance between values in the index curve. More...
 
static double GetBitSize (LasFile lasFile)
 Return bit size of the specified LAS file. More...
 
static string GetCompany (LasFile lasFile)
 Return company name of the specified LAS file. More...
 
static string GetCountry (LasFile lasFile)
 Return country of the well of the specified LAS file. More...
 
static DateTime GetDate (LasFile lasFile)
 Return logging date from the specified LAS file. More...
 
static string GetFieldName (LasFile lasFile)
 Return field name of the specified LAS file. More...
 
static double[] GetInterval (LasFile lasFile)
 Get logging interval of the specified LAS file. More...
 
static double GetMd (LasFile lasFile)
 Return MD (measured depth) of the specified LAS file. More...
 
static string GetRigName (LasFile lasFile)
 Return rig name of the specified LAS file. More...
 
static string GetRunNumber (LasFile lasFile)
 Return run number of the specified LAS file. More...
 
static string GetServiceCompany (LasFile lasFile)
 Return service company name of the specified LAS file. More...
 
static double GetStep (LasFile lasFile)
 Get logging step of the specified LAS file. More...
 
static string GetWellName (LasFile lasFile)
 Return well name of the specified LAS file. More...
 
static bool IsTimeIndexed (LasFile lasFile)
 Check if the specified LAS file is time indexed. More...
 
static string ToString (LasFile lasFile)
 Create a string representation of the entire content of the specified LAS file. More...
 

Detailed Description

Convenience methods for extracting information from LAS files.

Author
Petroware AS

Member Function Documentation

static double ComputeStep ( LasFile  lasFile)
static

Based on the index curve, Compute the step value as it will be reported in the STEP parameter in the well section.

The method uses the GetInterval() method to compute min, max and average step, and then compare the largest deviation from the average (min or max) to the average itself. If this is within some limit (0.5% currently) the step is considered regular.

Parameters
lasFileLAS file to compute step of.
Returns
The LAS file step value. 0.0 if irregular.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static double [] FindStep ( LasFile  lasFile)
static

Find actual step value of the specified LAS file, being the distance between values in the index curve.

Three values are returned: The minimum step, the maximum step and the average step. It is left to the client to decide if these numbers represents a regular or an irregular log set.

Parameters
lasFileLAS file to get step from. Non-null.
Returns
The (minimum, maximum and average) step value of LAS file.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static double GetBitSize ( LasFile  lasFile)
static

Return bit size of the specified LAS file.

Parameters
lasFileLAS file to get bit size from. Non-null.
Returns
Bit size of LAS file (in meters according to the LAS documentation), or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static string GetCompany ( LasFile  lasFile)
static

Return company name of the specified LAS file.

Parameters
lasFileLAS file to get company name from. Non-null.
Returns
Company name of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static string GetCountry ( LasFile  lasFile)
static

Return country of the well of the specified LAS file.

Parameters
lasFileLAS file to get country from. Non-null.
Returns
Country of well of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static DateTime GetDate ( LasFile  lasFile)
static

Return logging date from the specified LAS file.

Parameters
lasFileLAS file to get logging date from. Non-null.
Returns
Logging date of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static string GetFieldName ( LasFile  lasFile)
static

Return field name of the specified LAS file.

Parameters
lasFileLAS file to get field name from. Non-null.
Returns
Field name of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static double [] GetInterval ( LasFile  lasFile)
static

Get logging interval of the specified LAS file.

NOTE: This is the interval specified by the start/stop parameters in the well section, not the actual interval from the file data (which may well be different).

Parameters
lasFileLAS file to get interval from. Non-null.
Returns
The logging interval of the LAS file. Array of two (smallest value first) or null if property not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static double GetMd ( LasFile  lasFile)
static

Return MD (measured depth) of the specified LAS file.

Parameters
lasFileLAS file to get MD from. Non-null.
Returns
MD of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static string GetRigName ( LasFile  lasFile)
static

Return rig name of the specified LAS file.

Parameters
lasFileLAS file to get rig name from. Non-null.
Returns
Rig name of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static string GetRunNumber ( LasFile  lasFile)
static

Return run number of the specified LAS file.

Parameters
lasFileLAS file to get run number from. Non-null.
Returns
Run number of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static string GetServiceCompany ( LasFile  lasFile)
static

Return service company name of the specified LAS file.

Parameters
lasFileLAS file to get service company name from. Non-null.
Returns
Service company name of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static double GetStep ( LasFile  lasFile)
static

Get logging step of the specified LAS file.

NOTE: This is the interval specified by the step parameters in the well section, not the actual interval from the file data (which may well be different).

According to the LAS specification the step value is -1.0 in case the actual step is irregular or unknown.

Parameters
lasFileLAS file to get logging step from. Non-null.
Returns
The step of the LAS file. Null if it is not present.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static string GetWellName ( LasFile  lasFile)
static

Return well name of the specified LAS file.

Parameters
lasFileLAS file to get well name from. Non-null.
Returns
Well name of LAS file, or null if not found.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static bool IsTimeIndexed ( LasFile  lasFile)
static

Check if the specified LAS file is time indexed.

A LAS file is defined to be time indexed if the start and stop parameters (STRT/STOP) have time units.

Parameters
lasFileLAS file to check. Non-null.
Returns
True if the LAS file is time indexed, false if it is depth indexed, or the indexing is not specified.
Exceptions
ArgumentNullExceptionIf lasFile is null.
static string ToString ( LasFile  lasFile)
static

Create a string representation of the entire content of the specified LAS file.

Parameters
lasFileLAS file to get as string. Non-null.
Returns
A string representation of the LAS file. Never null.
Exceptions
ArgumentNullExceptionIf lasFile is null.

The documentation for this class was generated from the following file: