Documentation ¶
Index ¶
- type Channel
- type ChannelGroup
- type MF4
- func (m *MF4) ChannelNames() map[int][]string
- func (m *MF4) CreatedBy() string
- func (m *MF4) DaylightOffsetMin(tFlag uint8) (int16, error)
- func (m *MF4) GetAttachments() []AT.AttFile
- func (m *MF4) GetChannelSample(indexDataGroup int, channelName string) ([]interface{}, error)
- func (m *MF4) GetMeasureComment() string
- func (m *MF4) GetStartTimeLT() time.Time
- func (m *MF4) GetStartTimeNs() int64
- func (m *MF4) GetTimeNs(t uint64, tzo uint64, dlo uint64, tf uint8) int64
- func (m *MF4) ID() string
- func (m *MF4) IsFinalized() bool
- func (m *MF4) MdfVersion() uint16
- func (m *MF4) ReadChangeLog()
- func (m *MF4) SaveAttachment(attachment AT.AttFile, outputPath string) AT.AttFile
- func (m *MF4) StartAngleRad() (float64, error)
- func (m *MF4) StartDistanceM() (float64, error)
- func (m *MF4) TimezoneOffsetMin(tzo int16, timeFlag uint8) (int16, error)
- func (m *MF4) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelGroup ¶
type MF4 ¶
type MF4 struct { File *os.File Header *HD.Block Identification *ID.Block //Address to First File History Block FileHistory int64 ChannelGroup []*ChannelGroup }
func (*MF4) ChannelNames ¶
ChannelNames returns a map of channels of each datagroup
map[key]value key = Datagroup number value = array with channel names
func (*MF4) DaylightOffsetMin ¶
Daylight saving time (DST) offset in minutes for the starting timestamp. During the summer months, many regions observe a DST offset of 60 minutes (1 hour).
func (*MF4) GetAttachments ¶
GetAttachmemts iterates over all AT blocks and return to an array
func (*MF4) GetChannelSample ¶
GetChannelSample loads sample by DataGroupName and ChannelName
func (*MF4) GetMeasureComment ¶
func (*MF4) GetStartTimeLT ¶ added in v0.0.2
func (*MF4) GetStartTimeNs ¶ added in v0.0.2
StartTimeNs returns the start timestamp of measurement in nanoseconds
func (*MF4) IsFinalized ¶
isUnfinalized method returns Standard flags for unfinalized MDF
func (*MF4) MdfVersion ¶
VersionNumber method returns the Version number of the MDF format, i.e. 420
func (*MF4) ReadChangeLog ¶
func (m *MF4) ReadChangeLog()
ReadChangeLog reads and prints the change log entries from the MF4 file. The change log is stored in FHBLOCK structures, each representing a change made to the MDF file. The function iterates through the linked list of FHBLOCKs starting from the first one referenced by the HDBLOCK, printing the chronological change history.
Parameters:
m: A pointer to the MF4 instance containing the file change log.
func (*MF4) SaveAttachment ¶
Saves attachment file input to output path
func (*MF4) StartAngleRad ¶
Start angle in radians at the beginning of the measurement serves as the reference point for angle synchronous measurements.
func (*MF4) StartDistanceM ¶
Start distance in meters in meters at the beginning of the measurement serves as the reference point for distance synchronous measurements.
func (*MF4) TimezoneOffsetMin ¶
Time zone offset in minutes. Range (-840, 840) minutes. For instance, a value of 60 minutes implies UTC+1 time zone, corresponding to Central European Time (CET).