Click or drag to resize

DfsFileWriteItemTimeStep Method

Writes data to the specified item and timestep in the file.

If the item-timestep exists already, data is updated. If it does not exist, the item number and timestep index must match exactly the next item-timestep after the last one in the file.

The size of the data must match the data size of the item that is to be written.

The time value is only relevant for files with non-equidistant time axis. For files with an equidistant time axis, the time value is ignored, and a zero can be used.

Namespace:  DHI.Generic.MikeZero.DFS
Assembly:  DHI.Generic.MIKEZero.DFS (in DHI.Generic.MIKEZero.DFS.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public void WriteItemTimeStep(
	int itemNumber,
	int timestepIndex,
	double time,
	Array data
)

Parameters

itemNumber
Type: SystemInt32
Number of item to write. 1-based.
timestepIndex
Type: SystemInt32
Index of time step to write. 0-based.Værso
time
Type: SystemDouble
Time relative to start of file, in unit specified in time axis
data
Type: SystemArray
Data to write to file

Implements

IDfsFileIOWriteItemTimeStep(Int32, Int32, Double, Array)
See Also