Is there an option for having leading zeros in coordinate output with a format containing ddd[...]
?
Doing this with D
is easy by specifying e.g. --FORMAT_FLOAT_OUT=%05.3g
.
E.g.:
$ echo 7.54353543 7.4342 | gmt convert -fg --FORMAT_GEO_OUT=ddd:mm:ss.xxF
07:32:36.73E 77:26:03.12N
I would like to have the output as 007:32:36.73E 07:26:03.12N
.
That is, degree field width of 3 for longitude, and degree field width of 2 for latitude.