I have two text csv files.
in file one, field 2 is hh:mm:ss.ss and I will convert that to seconds since midnight and want to find the closest matching value in
the second csv file in which field 4 is seconds since midnight. I will then co-mingle the two lines, compute a few delta values and write it all back out to a third csv file.
there should be a match within a few seconds but I find that there is some drifting and I want to find the closest match, regardless of the variance. Don't know what I'll do yet if the data files cross midnight...(seconds since jan 1?)
I need a good method of closest matching. Recommendations?
Thanks
Bob
in file one, field 2 is hh:mm:ss.ss and I will convert that to seconds since midnight and want to find the closest matching value in
the second csv file in which field 4 is seconds since midnight. I will then co-mingle the two lines, compute a few delta values and write it all back out to a third csv file.
there should be a match within a few seconds but I find that there is some drifting and I want to find the closest match, regardless of the variance. Don't know what I'll do yet if the data files cross midnight...(seconds since jan 1?)
I need a good method of closest matching. Recommendations?
Thanks
Bob