Gmt math -i -T should print warning

Shouldn’t this fail with a warning,
e.g., “-i ignored because -T was used”?

    $ gmt math -i+o-19000 -T-12000/12500/6000 T =
    -12000	-12000
    -6000	-6000
    0	0
    6000	6000
    12000	12000

Yes one could use instead

    $ gmt math -T-12000/12500/6000 T = | gmt math -i+o-19000 STDIN =
    -31000
    -25000
    -19000
    -13000
    -7000

See https://github.com/GenericMappingTools/gmt/pull/7641. Problem is we did not check if -i gave any columns (as per documentation). This hole has now been plugged.
BTW, -i and -o deals with input and output issues. -T does not in this context.

1 Like