ItemInfo

ItemInfo(
    self,
    name=None,
    itemtype=None,
    unit=None,
    data_value_type='Instantaneous',
)

ItemInfo.

Parameters

Name Type Description Default
name str | EUMType | None None
type Default EUMType.Undefined required
unit EUMUnit | None Default unit matching EUMType None
data_value_type Literal['Instantaneous', 'Accumulated', 'StepAccumulated', 'MeanStepBackward'] One of the following strings: ‘Instantaneous’, ‘Accumulated’, ‘StepAccumulated’, ‘MeanStepBackward’, ‘MeanStepForward’. Default: ‘Instantaneous’ 'Instantaneous'

Examples

import mikeio
mikeio.ItemInfo("Viken", mikeio.EUMType.Water_Level)
Viken <Water Level> (meter)
mikeio.ItemInfo(mikeio.EUMType.Wind_speed)
Wind speed <Wind speed> (meter per sec)

Methods

Name Description
from_mikecore_dynamic_item_info Create ItemInfo from a mikecore.DfsDynamicItemInfo object.

from_mikecore_dynamic_item_info

ItemInfo.from_mikecore_dynamic_item_info(dfsItemInfo)

Create ItemInfo from a mikecore.DfsDynamicItemInfo object.