Any way to modify timestamps of certain groups without affecting data sampling or group/channel meta data #1010
-
Hi all, I'm looking to adjust the timestamps of all the channel groups in an mf4 file without affecting the sampling or the file meta data. Is this something that can currently be done with asammdf? By adjust, I specifically mean offset. What I am ultimately trying to achieve is to time-align and merge 2 mf4 files captured from 2 different sources. I am currently loading the alignment signal from both files and am able to determine the time shift needed for best alignment. I could just load the 2nd file data as a dataframe, shift the timestamps and save the dataframe as a new mf4 file but then I would lose all the metadata from the channels. What I'd rather do is somehow modify the timestamps in isolation with the least amount of disturbance to any other data in the file and then merge the 2 files which I am comfortable in doing. I'm aware that there is a similar question already asked a few days ago (https://github.com/danielhrisca/asammdf/discussions/1009) but I feel like my query is different enough to not derail their question. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Please show how the time channel conversion rule is stored in the file. For example |
Beta Was this translation helpful? Give feedback.
In this case you have two options
!!! try them on copies of the original file