a builtin function to get the time series array for a given buffer
Would it be possible to add a function to the nds client that takes a buffer and returns the list of gps times each data point in the buffer corresponds to? It seems like this is maybe something that is recreated in each application that uses the client, and could be moved into the client itself, especially if there are edge cases for different types of trends. This is my guess for how to do it in python, but I'm not certain about edge cases:
def get_gps_seconds_array_for_nds_buffer(nds_buffer):
return [nds_buffer.gps_seconds + (i / nds_buffer.sample_rate) for i in range(len(nds_buffer.data))]