I have a data file (see attached), which has two columns. The first is a frequency in MHz, and the second a phase in degrees. There are 1601 data points - the frequency spans 50 MHz to 7000 MHz, in steps of 4.34375 MHz.
I’d like to extract some of this data to put in a document, but I don’t want to put all 1601 points. What I’d like to do is to find those data points that have a frequency nearest to a non-negative integer multiple of 500 MHz, (i.e. 0, 500, 1000, 1500, 2000, 2500 …7000 MHz) and output only them. There’s no data at 0 MHz, nor 500, nor 1000, but I want to find the closest to those. So I want the points
50.,0.21774563818642534
501.75,0.26184339842516735
1001.28125,0.5089995355033423
1500.8125,0.5958289355437785
2000.34375,0.847843737588093
2499.875,0.9325320400864996
2999.40625,1.4433401865247077
....
7000.,2.1843935555882155
Any ideas?