I'm having an unexpected issue with csv-time-join, though this may be a feature and I'm not fully understanding the utility.
Here is what I want to do:
Inputs
sensor_data.bin - standard timestamped sensor bin file (hyperspec in my case but irrelevant to this issue)
timestamps.bin - list of time stamps
Goal
I want to grab from sensor_data.bin any data within n seconds of the timestamps in timestamps.bin.
Current Method
sensor_data.bin | csv-time-join 'timestamps.bin;binary=t;fields=t' - --binary='t,3ui,158112w' --fields=t --nearest --bound=n
Current Outcome
This seems to work for all timestamps in timestamps.bin, except for the first and last. For the first one it only outputs data with timestamps up to n seconds larger (inclusive), and for the last one it only outputs data with timestamps up to n seconds smaller (not inclusive).
Is this behavior expected? If yes, can I achieve what I want with csv-time-join?
Cheers,
Alex.