Perhaps include a small piece of the data file - many are cautious about downloading anything.
Explain the data a little.
And, define in words what you are trying to determine.
Not sure how many users here have ever used plot.
(For me, I have used Unix for years, but never heard of plot.)
Y = distance between two objects; let's say between two stars
The orbit is decaying as you can see, and a maximum corresponds to an apocenter (the two stars are at their maximum separation at that moment), and a minimum to a pericenter (minimum separation at that moment).
This corresponds to the first 600 lines, which contain the first two maxima. It is obvious to find these with sort or awk and then calculate the X separation between them.
But I want to do that for the whole range of Y, as well as the instantaneous period.
I.e. I want to have
"Separation in X between two consecutive maxima" vs. "X" for the whole file.
---------- Post updated at 03:50 PM ---------- Previous update was at 03:48 PM ----------