Hi Annihilannic:
I 've tried to use this script, but doesn't work correctly.
Really I have a file as:
0.098,1007.5,293.35,77,289.25,13.5252
0.157,1000.7,293.75,72,288.55,12.9151
0.21,994.6,293.55,69,287.65,12.1961
0.259,989.0,293.95,66,287.35,11.9453
0.307,983.5,293.65,66,287.15,11.8034
0.36,977.5,293.55,65,286.75,11.5045
0.413,971.6,293.45,65,286.65,11.4337
0.466,965.7,293.35,65,286.55,11.3633
0.52,959.5,292.85,64,285.85,10.8734
0.579,953.0,292.35,65,285.65,10.75
0.634,947.0,292.25,57,283.55,9.35738
0.682,941.7,291.85,56,282.95,9.00124
0.73,936.4,291.55,53,281.85,8.36647
0.785,930.5,291.15,48,280.05,7.40988
0.837,924.8,290.85,45,278.85,6.82761
0.891,919.0,290.55,42,277.55,6.242
0.943,913.4,290.25,40,276.55,5.82345
0.997,907.6,289.75,43,277.15,6.08576
1.053,901.6,289.25,43,276.65,5.88505
1.105,896.1,288.85,44,276.65,5.8932
1.157,890.7,288.75,32,272.15,4.26334
1.215,884.6,289.25,32,272.55,4.38255
1.263,879.7,289.05,38,274.75,5.14362
1.316,874.1,289.05,40,275.45,5.40796
1.368,868.8,288.65,42,275.85,5.57205
1.418,863.7,288.25,47,277.05,6.07451
1.472,858.2,287.75,49,277.15,6.12806
1.523,853.0,287.45,45,275.75,5.55563
1.577,847.6,287.15,40,273.75,4.81746
1.636,841.6,287.75,13,259.65,1.62399
1.694,835.9,288.25,7,252.65,0.89756
1.746,830.8,288.05,11,257.85,1.39847
1.805,825.0,287.55,16,262.05,1.97361
.
.
.
.
.
then z=$1 and t=$3. If I modify only $2 for $3 the script shows:
1 0.098,1007.5,293.35,77,289.25,13.5252 0
1.1 0.098,1007.5,293.35,77,289.25,13.5252 0.157,1000.7,293.75,72,288.55,12.9151 0
1.2 0.157,1000.7,293.75,72,288.55,12.9151 0.21,994.6,293.55,69,287.65,12.1961 0
1.3 0.259,989.0,293.95,66,287.35,11.9453 0.307,983.5,293.65,66,287.15,11.8034 0
1.4 0.36,977.5,293.55,65,286.75,11.5045 0.413,971.6,293.45,65,286.65,11.4337 0
1.5 0.466,965.7,293.35,65,286.55,11.3633 0.52,959.5,292.85,64,285.85,10.8734 0
1.6 0.579,953.0,292.35,65,285.65,10.75 0.634,947.0,292.25,57,283.55,9.35738 0
1.7 0.682,941.7,291.85,56,282.95,9.00124 0.73,936.4,291.55,53,281.85,8.36647 0
1.8 0.785,930.5,291.15,48,280.05,7.40988 0.837,924.8,290.85,45,278.85,6.82761 0
1.9 0.891,919.0,290.55,42,277.55,6.242 0.943,913.4,290.25,40,276.55,5.82345 0
2 0.997,907.6,289.75,43,277.15,6.08576 1.053,901.6,289.25,43,276.65,5.88505 0
2.1 1.053,901.6,289.25,43,276.65,5.88505 1.105,896.1,288.85,44,276.65,5.8932 0
2.2 1.157,890.7,288.75,32,272.15,4.26334 1.215,884.6,289.25,32,272.55,4.38255 0
2.3 1.263,879.7,289.05,38,274.75,5.14362 1.316,874.1,289.05,40,275.45,5.40796 0
2.4 1.368,868.8,288.65,42,275.85,5.57205 1.418,863.7,288.25,47,277.05,6.07451 0
2.5 1.472,858.2,287.75,49,277.15,6.12806 1.523,853.0,287.45,45,275.75,5.55563 0
2.6 1.577,847.6,287.15,40,273.75,4.81746 1.636,841.6,287.75,13,259.65,1.62399 0
2.7 1.694,835.9,288.25,7,252.65,0.89756 1.746,830.8,288.05,11,257.85,1.39847 0
2.8 1.746,830.8,288.05,11,257.85,1.39847 1.805,825.0,287.55,16,262.05,1.97361 0
2.9 1.863,819.3,286.95,23,266.15,2.7305 1.924,813.4,286.35,30,269.15,3.43973 0
3 1.978,808.2,285.75,32,269.55,3.55216 2.033,802.9,285.25,35,270.25,3.74969 0
3.1 2.09,797.4,284.85,30,267.85,3.13371 2.141,792.6,284.65,26,265.85,2.68941 0
.
.
.
13.7 12.678,182.5,211.55,38,204.25,0.00534579 12.727,181.1,211.65,35,203.75,0.00496974 0
13.8 12.772,179.8,211.75,31,202.95,0.00441957 12.822,178.3,212.15,27,202.25,0.00397883 0
Then it doesn't appear the interpolation as well I only would like that it works between 1 to 4.5 as distance.