trim_xyzrprh_to_times¶
- HSTB.kluster.fqpr_vessel.trim_xyzrprh_to_times(xyzrph, mintime, maxtime)¶
Our vessel information (mounting offsets, angles, uncertainty parameters) are stored in the Kluster xyzrph attribute dictionary. Expects a format like this:
- {sensor_name1: {utc timestamp1: value, utc timestamp2: value, …},
sensor_name2: {utc timestamp1: value, utc timestamp2: value, …}, …}
This function will trim the provided dictionary to the minimum/maximum time ranges provided. It will keep the nearest earliest timestamped entry, and all entries that fall within the mintime-maxtime range.
- Parameters
xyzrph (
dict) – dict of offsets/angles/tpu parameters from the fqpr instancemintime (
float) – minimum time of interestmaxtime (
float) – maximum time of interest
- Returns
xyzrph trimmed to only the relevant entries for this min/max time
- Return type
dict