Skip to content

Leading zeros with FORMAT_GEO_OUT=ddd:mm.ss.xx #7475

@anbj

Description

@anbj
  • Based on forumpost.

  • Will implement parts of More FORMAT_GEO_MAP/OUT format options #5153.

  • There is an advantage of having fixed widths for coordinates to reduce ambiguity.

  • Request: implement an option (or make if default - minimizing ambiguity pr. default is always wise) to have fixed width - i.e coordinates get leading/trailing zeros. The output in the current version is:

    $ echo 7.54353543 9.1342 | gmt convert -fg --FORMAT_GEO_OUT=ddd:mm.xxxF
    07:32.612E      09:08.052N
    

    Proposed new output: 007:32.612E 09:08.052N.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions