Logger

The logger component writes the values of DDS topics as time series to netCDF log files. The main sections of the input file are:

  • Options:
    • PeriodMs: The period between writing to file, in milliseconds.
  • LogSetup: The signal-independent configuration of the logger.
    • Maxsamples: The number of samples before further samples are written to a new NetCDF File.
    • CompressionLevel: The NetCDF compression level, an integer between 0 and 9.
    • Directory: A string specifying the directory where the log files should be written.
    • FilePrefix: The prefix for the files.
    • Title: Title of the log file series.
    • Origin: Typically name of the ship.
    • OriginType: Typically 'ship'.
    • OriginId: Typically the IMO number or another ID.
    • Summary: A short description of the data series.
  • Signals: A list of signals to write, with the following fields:
    • Type: The data type of the signal, e.g. DoubleVal, PosInfo, Float3. Available types can be found here.
    • Topic: The topic name
    • Unit: The unit of the signal. This is currently for reference only.
    • Partition: The DDS partition to find the signal.
    • DdsSelectQuery: A DDS query to perform to find the signal.

Available DDS-types can be found here

An example input file is shown below, as well as here.

Options:
PeriodMs: 1000
LogSetup:
Maxsamples: 3600
CompressionLevel: 2
Directory: /home/sintef/Logs/Main
FilePrefix: Logs_
Title: Eros main logger
Origin: Eros
OriginType: ship
OriginId: IMO9617973
Summary: Operational data from Eros
Signals:
# Estimates
- { Type: DoubleVal, Topic: Common_Machinery_Aux_Cons_kg_per_h, Unit: kg/h, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_Aux_ElProd_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_Aux_Output_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_ME_Cons_kg_per_h, Unit: kg/h, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_ME_ElProd_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_ME_Output_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_ME_RPM, Unit: rpm, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_Sum_Cons_kg_per_h, Unit: kg/h, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_Sum_ElProd_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Machinery_Sum_Output_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_Efficiency, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_ME_Power_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_PTI_Power_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_Pitch_PD, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_Pitch_percent, Unit: 1/100, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_RPM, Unit: rpm, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_Sum_Power_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_Thrust_kN, Unit: kN, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Common_Prop_Torque_kNm, Unit: kN.m, Partition: , DdsSelectQuery: }
- { Type: ShortVal, Topic: Estimated_Modus, Partition: , DdsSelectQuery: }
# Machinery
- { Type: DoubleVal, Topic: Machinery_AE1_Cons_kg_per_h, Unit: kg/h, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_AE1_Power_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_AE2_Cons_kg_per_h, Unit: kg/h, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_AE2_Power_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_ME_Cons_kg_per_h, Unit: kg/h, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_ME_RPM, Unit: rpm, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_ME_Rack_percent, Unit: 1/100, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_PTI_Power_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_Propeller_Pitch_percent, Unit: 1/100, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_Propeller_RPM, Unit: rpm, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Machinery_SG_Power_kW, Unit: kW, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Hull_DepthBow_m, Unit: m, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Hull_DepthStern_m, Unit: m, Partition: , DdsSelectQuery: }
- { Type: DoubleVal, Topic: Hull_Roll_degree, Unit: degree, Partition: , DdsSelectQuery: }
# NMEA
- { Type: PosInfo, Topic: Nav_Pos, Partition: , DdsSelectQuery: }
- { Type: GyroInfo, Topic: Nav_Gyro, Partition: , DdsSelectQuery: }
- { Type: WindInfo, Topic: Nav_Wind, Partition: , DdsSelectQuery: }
- { Type: DepthInfo, Topic: Nav_Depth, Partition: , DdsSelectQuery: }
- { Type: LogInfo, Topic: Nav_Log, Partition: , DdsSelectQuery: }
# MRU
- { Type: Float3, Topic: Hull_Euler_rad, Unit: rad, Partition: , DdsSelectQuery: }
- { Type: Float3, Topic: Hull_DeltaVelocity_m_per_s, Unit: m/s, Partition: , DdsSelectQuery: }
- { Type: Float3, Topic: Hull_OrientationRate_rad_per_s, Unit: rad/s, Partition: , DdsSelectQuery: }
- { Type: Float3, Topic: Hull_Acceleration_m_per_s2, Unit: m/s2, Partition: , DdsSelectQuery: }