There is a relatively simple task that I wonder how we can use gmt math to do for:
If we want to have a “time series”, we can simply do
gmt math -o0 -T1.e-4/1.e-2/2+l T =
to get the column of the data values (-o0 was used to suppress the duplicated column):
0.0001
0.0002
0.0005
0.001
0.002
0.005
0.01
Problem is, sometime I want to append “smartly” the indexing integers for each row; the final result I want in this case would be:
1 0.0001
2 0.0002
3 0.0005
4 0.001
5 0.002
6 0.005
7 0.01
The 1…7 list can also easily be generated using another gmt math command:
gmt math -o0 -T1/7/1 T =
But is there a way to generate the two columns AT ONCE using gmt math ?
Thanks