Click or drag to resize

M11FfBlockReaderTimeDescriptor Structure

Time descriptor block

The TIME descripter part must start with one and only one TIME descripter record. This record contains information about the type of time data in the file. The type of time data ranges from information about an offset time and a constant time step which applies for all data channels, to individual time data for each data value in each data channel.

The individual information is added in a number of extra records after the TIME descripter record. The number of extra records must be specified in the TIME descripter record in variable NR_XREC. If there are no extra records, NR_XREC is defined as zero.

For rectype 1 and 2, the following values are present

DivReal[0] : Number of time steps/values in each data channel
DivReal[1] : Time between first and last value, time span of file

For constant time steps, the time step size can be calculated by:

double timestepSize = DivReal[1] / (DivReal[0]-1.0);

Namespace:  DHI.Mike1D.ResultDataAccess
Assembly:  DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public struct TimeDescriptor

The M11FfBlockReaderTimeDescriptor type exposes the following members.

Methods
  NameDescription
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from ValueType.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Fields
  NameDescription
Public fieldCreationTime
Time the file was created
Public fieldDivInts
Misc integers. [0] =
Public fieldDivReal
Misc reals. [0] = number of time steps. [1] = Simulation time span in hours.
Public fieldExtraBlocks
Extra blocks, belonging to the Channel Descriptor
Public fieldNrXRec
Number of extra blocks belonging to the time descroptor block
Public fieldRecType
Type of time definition. 1 = constant time step. 2 = one time channel stored in the file
Public fieldStartTime
Start time of channel data
Top
See Also