Log I/O
|
Model a log curve of a DLIS file. More...
Public Member Functions | |
void | AddValue (int dimension, object value) |
Add a value to this curve. | |
void | AddValue (object value) |
Add a value to the first dimension of this curve. | |
void | Clear () |
Remove all values from this curve. | |
DlisCurve (string name, string unit, string description, int representationCode, int nDimensions) | |
Create a DLIS log curve. | |
string | GetAxisName (int axisNo) |
Return name of the specified axis. | |
string | GetDescription () |
Return description of this curve. | |
string | GetName () |
Return name of this curve. | |
int | GetNAxes () |
Return number of axes for a multidimensional curve. | |
int | GetNDimensions () |
Return the number of dimensions in this curve. | |
int | GetNDimensions (int axisNo) |
Return the number of dimensions along the specified axis. | |
int | GetNValues () |
Return the number of values (per dimension) in this curve. | |
object[] | GetRange () |
Return the range (i.e the min and max value) of this curve. | |
int | GetRepresentationCode () |
Return the DLIS representation code for the values of this curve. | |
Statistics | GetStatistics () |
Return curve statistics. | |
string | GetUnit () |
Return unit of measure of the values of this curve. | |
object | GetValue (int dimension, int index) |
Return a specific value from the given dimension of this curve. | |
object | GetValue (int index) |
Return a specific value from this curve. | |
object | GetValue (int[] axisPosition, int index) |
Return a specific value within the specified axis position at the given index of this curve. | |
Type | GetValueType () |
Return value type (i.e the .Net type) of the curve values. | |
override string | ToString () |
Model a log curve of a DLIS file.
A log curve consists of measurement data of a specific type. The curve may have one or more dimensions.
DlisCurve | ( | string | name, |
string | unit, | ||
string | description, | ||
int | representationCode, | ||
int | nDimensions ) |
Create a DLIS log curve.
name | Name (mnemonic) of curve. Non-null. |
unit | Unit of measure for the curve data. Null if unknown or unitless. |
description | Curve long name or description. May be null if not provided. |
representationCode | Type of curve data. See DlisType. |
nDimensions | Number of dimensions in curve. [1,>. |
void AddValue | ( | int | dimension, |
object | value ) |
Add a value to this curve.
dimension | Dimension index. [0,nDimensions>. |
value | Value to add. Null to indicate absent. |
void AddValue | ( | object | value | ) |
Add a value to the first dimension of this curve.
This is a convenience method if the client knows that there is only one dimension in the curve. Equivalent of calling AddValue(0, value).
value | Value to add. Null to indicate absent. |
string GetAxisName | ( | int | axisNo | ) |
Return name of the specified axis.
axisNo | Axis to get name of. [0,nAxes>. |
ArgumentException | If axisNo is out of bounds. |
string GetDescription | ( | ) |
Return description of this curve.
string GetName | ( | ) |
Return name of this curve.
int GetNAxes | ( | ) |
Return number of axes for a multidimensional curve.
For a single value curve, the number returned is always 0. For a multidimensional curve the number returned is [1,>.
int GetNDimensions | ( | ) |
Return the number of dimensions in this curve.
In case the curve contains multiple axes (see getNAxes()) this number is the Cartesian product of their dimensions.
int GetNDimensions | ( | int | axisNo | ) |
Return the number of dimensions along the specified axis.
axisNo | Axis to get dimension of. [0,nAxes>. |
ArgumentException | If axisNo is out of bounds. |
int GetNValues | ( | ) |
Return the number of values (per dimension) in this curve.
All dimensions have the same number of values.
object[] GetRange | ( | ) |
Return the range (i.e the min and max value) 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 multi-dimensional, the range is reported across all dimensions.
The objects returned is of type according to GetValueType().
int GetRepresentationCode | ( | ) |
Return the DLIS representation code for the values of this curve.
This is the internal type of the curve data as defined by DLIS. It is exposed in the API for information only. The actual (.Net) type of the curve data is retrieved from GetValueType().
Statistics GetStatistics | ( | ) |
Return curve statistics.
Statistics is available even if log data has not been stored.
string GetUnit | ( | ) |
Return unit of measure of the values of this curve.
object GetValue | ( | int | dimension, |
int | index ) |
Return a specific value from the given dimension of this curve.
The object returned is of type according to GetValueType().
dimension | Dimension index. [0,nDimensions>. |
index | Position index. [0,nValues>. |
object GetValue | ( | int | index | ) |
Return a specific value from this curve.
If this is a multi-dimensional curve, the value is retrieved from the first dimension.
This is a convenience method if the caller knows that there is only one dimension in the curve. Equivalent of calling GetValue(0, index).
The object returned is of type according to GetValueType().
index | Position index. [0,nValues>. |
object GetValue | ( | int[] | axisPosition, |
int | index ) |
Return a specific value within the specified axis position at the given index of this curve.
This is a convenience method for accessing elements within a multidimensional curve with multiple axes.
axisPosition | Axis position to get value from. Non-null. Array length must equal GetNAxes() and index i must be [0, GetNDimensions(i)>. |
index | Position index. [0,nValues>. |
ArgumentNullException | If axisPosition is null. |
ArgumentException | If axisPosition has wrong length or its content is out of bounds, or if index is out of bounds. |
Type GetValueType | ( | ) |
Return value type (i.e the .Net type) of the curve values.