Log I/O
|
Model a log curve of a LAS file. More...
Public Member Functions | |
void | AddValue (int dimension, object value) |
Add the specified value to the end of this curve. | |
void | AddValue (object value) |
Add the specified value to the end of (the first dimension of) this curve. | |
void | Clear () |
Remove all values from this curve. | |
string | GetDescription () |
Return description of this curve. | |
string | GetName () |
Return name of this curve. | |
int | GetNDimensions () |
Return the number of dimensions of this curve. | |
int | GetNValues () |
Return the number of values in this curve. | |
object[] | GetRange () |
Return range (i.e min and max) of this curve. | |
Statistics | GetStatistics () |
Return curve statistics. | |
string | GetUnit () |
Return unit of measurement for the values of this curve. | |
object | GetValue (int dimension, int index) |
Return curve value of the specified index. | |
object | GetValue (int index) |
Return curve value of the specified index. | |
Type | GetValueType () |
Return data type of the values of this curve. | |
LasCurve (string name, string unit, string description, Type valueType, int nDimensions) | |
Create a new LAS curve instance. | |
override string | ToString () |
Model a log curve of a LAS file.
LasCurve | ( | string | name, |
string | unit, | ||
string | description, | ||
Type | valueType, | ||
int | nDimensions ) |
Create a new LAS curve instance.
name | Curve name. Non-null. |
unit | Data unit. Null if unitless or unknown. |
description | Curve description. Null if none provided. |
valueType | Data type of the values of the curve. Non-null. |
nDimensions | Number of dimensions in curve. [1,>. |
ArgumentNullException | If name or valueType is null. |
ArgumentException | If nDimensions is invalid. |
void AddValue | ( | int | dimension, |
object | value ) |
Add the specified value to the end of this curve.
The value may be a string or any other type, but it will be converted to the value type of this curve internally.
dimension | Dimension index. [0,nDimensions>. |
value | Value to add. May be null to indicate no-value or absent. |
ArgumentException | If dimension is out of bounds. |
void AddValue | ( | object | value | ) |
Add the specified value to the end of (the first dimension of) this curve.
The value may be a string or any other type, but it will be converted to the value type of this curve internally.
This is equivalent of calling addValue(0, value).
value | Value to add. May be null to indicate no-value or absent. |
string GetDescription | ( | ) |
Return description of this curve.
string GetName | ( | ) |
Return name of this curve.
int GetNDimensions | ( | ) |
Return the number of dimensions of this curve.
int GetNValues | ( | ) |
Return the number of values in this curve.
object[] GetRange | ( | ) |
Return range (i.e min and max) of this curve.
The returned array is never null. The two entries may be null if min/max does not exist.
If the curve is multidimensional, the range is reported across all dimensions.
Statistics GetStatistics | ( | ) |
Return curve statistics.
Statistics is available even if log data has not been stored.
string GetUnit | ( | ) |
Return unit of measurement for the values of this curve.
object GetValue | ( | int | dimension, |
int | index ) |
Return curve value of the specified index.
dimension | Dimension index. [0,nDimensions>. |
index | Index to return value from. [0,nValues>. |
object GetValue | ( | int | index | ) |
Return curve value of the specified index.
Equivalent to getValue(0, index)
.
index | Index to return value from. [0,nValues>. |
Type GetValueType | ( | ) |
Return data type of the values of this curve.