Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.
This repository was archived by the owner on May 27, 2025. It is now read-only.

csv-time-join - Unexpected behavior at border time stamps #60

Description

@vendall

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions