Hi,
I have a file like this:
.....
10801 0.0 14.1 1.09083 0.00744552 0.00142242 0.0201911
10802 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10803....
$1 is an length coordinate, and I would like to create a depth coordinate as $2 so that i have a depth every 10 cm for 1 metre and then every metre for 10 metres for each length, keeping the rest of the data on the other columns (differs between coordinates):
....
10801 8 0.0 14.1 1.09083 0.00744552 0.00142242 0.0201911
10801 9 0.0 14.1 1.09083 0.00744552 0.00142242 0.0201911
10801 10 0.0 14.1 1.09083 0.00744552 0.00142242 0.0201911
10802 0.1 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.2 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.3 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.4 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.5 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.6 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.7 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.8 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.9 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 1 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 2 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
....
I think that I need an array, but am completely unsure on how to proceed,
I would greatly appreciate any help!
thank you very much in advance- even solving for every metre would be helpful,
Vid
I have a file like this:
.....
10801 0.0 14.1 1.09083 0.00744552 0.00142242 0.0201911
10802 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10803....
$1 is an length coordinate, and I would like to create a depth coordinate as $2 so that i have a depth every 10 cm for 1 metre and then every metre for 10 metres for each length, keeping the rest of the data on the other columns (differs between coordinates):
....
10801 8 0.0 14.1 1.09083 0.00744552 0.00142242 0.0201911
10801 9 0.0 14.1 1.09083 0.00744552 0.00142242 0.0201911
10801 10 0.0 14.1 1.09083 0.00744552 0.00142242 0.0201911
10802 0.1 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.2 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.3 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.4 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.5 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.6 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.7 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.8 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 0.9 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 1 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
10802 2 0.10 14.08 1.06125 0.00697322 0.00133229 0.0201911
....
I think that I need an array, but am completely unsure on how to proceed,
I would greatly appreciate any help!
thank you very much in advance- even solving for every metre would be helpful,
Vid