-
Notifications
You must be signed in to change notification settings - Fork 224
Description
Hi everyone,
In the snippet below, I'm able to read the timestamp from the trace header with second-level precision. However, I couldn't find any attributes in TraceField that provide sub-second precision, such as milliseconds or microseconds. I assume there's a way to access this data, but I'm struggling to figure it out. I would appreciate any guidance to help me get past this issue.
...
for iTraceIndex in range(len(segy_file.trace)):
try:
diTraceHeader = segy_file.header[iTraceIndex]
iYear = diTraceHeader[segyio.TraceField.YearDataRecorded]
iDayOfYear = diTraceHeader[segyio.TraceField.DayOfYear]
iHour = diTraceHeader[segyio.TraceField.HourOfDay]
iMinute = diTraceHeader[segyio.TraceField.MinuteOfHour]
iSecond = diTraceHeader[segyio.TraceField.SecondOfMinute]
...
PS: probably evident, but I'm relatively novice to segy.
Kind regards
Kurt