Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More FORMAT_GEO_MAP/OUT format options #5153

Open
KristofKoch opened this issue Apr 18, 2021 · 5 comments
Open

More FORMAT_GEO_MAP/OUT format options #5153

KristofKoch opened this issue Apr 18, 2021 · 5 comments
Assignees
Labels
feature request Request a new feature

Comments

@KristofKoch
Copy link
Contributor

Description of the desired feature

Currently the formatting options for geographic coordinates offers quite a few options but might benefit from some more.

Allow F and G in front of string

Currently the WESN sign is only allowed after the numbers. I could make good use of them in front of the numbers as well.

Current behaviour:

ddd:mm:ss[F|G] -> 52°37'19"N or 52°37'19" N

Proposed addition:

[F|G]ddd:mm:ss -> N52°37'19" or N 52°37'19"

The proposed leading F option is common in aviation context.

Leading/trailing Zeroes

In aviation usually all places of a coordinate are written even if they are zero. This is done to make sure not digit is accidentally missing. To my knowledge currently single digit degree latitude and single or double digit degree longitude can only be written as 1°N, 3°E, 47°W and not as 01°N, 003°E, 047°W. Similar with arc minutes and seconds. They are only plotted if not zero.

Current behaviour (three degrees north latitude, nine degrees west longitude):

ddd:mm:ssF -> 3°N, 9°W

Proposed addition:

DDD:MM:SSF -> 03°00'00"N, 009°00'00"W

While you might have even better ideas how to implement this I found capitalising the letters quite nice as it maintains backwards compatibility

Both proposals together

FDDD:MM:SS -> W009°00'00"

@KristofKoch KristofKoch added the feature request Request a new feature label Apr 18, 2021
@PaulWessel PaulWessel self-assigned this Apr 18, 2021
@PaulWessel PaulWessel added this to the Future release milestone Apr 18, 2021
@PaulWessel
Copy link
Member

These are good suggestions, @KristofKoch. Once EGU is over etc I will have a look if your syntax is the best option or not, but I agree with the functionality. 6.3 though.

@anbj
Copy link
Contributor

anbj commented Apr 20, 2021

PS! #3562

@KristofKoch
Copy link
Contributor Author

I found myself needing the W009°00'00" output format again and was about to write a feature request – turns out I wrote one already.

Is this still considered a useful addition?

@PaulWessel
Copy link
Member

Obviously this got lost in the shuffle when there are too many issues pending. I will refresh my memory of how this could be done.

@KristofKoch
Copy link
Contributor Author

Good morning Paul, thank you for looking into this again. No worries, it is nothing a visit to a vector graphics program can't fix. It is just tedious work doing it manually.

PaulWessel added a commit that referenced this issue Jan 14, 2023
See #5153 for background.  This PR seeks to implement that scheme.
KristofKoch pushed a commit that referenced this issue Jan 15, 2023
…7215)

* Allow format flags F and G to come first or last

See #5153 for background.  This PR seeks to implement that scheme.

* some updates

* update docs

* Update gmt.conf.rst

* Update gmt.conf.rst

* Prevent multiple F or G or both

* Warn if we produce data that GMT cannot read
remkos added a commit that referenced this issue Jul 20, 2023
* WIP allow leading zeros in degree annotations

See #5153.

* Get DDD working for latitudes

* Added explanation for DDD to table (#7656)

* Further implementation of #7475

* Another manual update related to #7475

* gmt.conf.rst: FORMAT_GEO_OUT, DDD means 3 digits for longitude, 2 digits for latitude

---------

Co-authored-by: Paul Wessel <pwessel@hawaii.edu>
Co-authored-by: KristofKoch <45796239+KristofKoch@users.noreply.github.com>
Co-authored-by: andreas <panden@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a new feature
Projects
None yet
Development

No branches or pull requests

3 participants