# Worst GMT command line ever?

**URL:** <https://forum.generic-mapping-tools.org/t/worst-gmt-command-line-ever/3396>\
**Category:** Lounge\
**Created:** [October 31, 2022, 4:19pm UTC](https://forum.generic-mapping-tools.org/t/worst-gmt-command-line-ever/3396 "2022-10-31T16:19:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ijbrewster](https://avatars.discourse-cdn.com/v4/letter/i/ce7236/32.png) [@ijbrewster](https://forum.generic-mapping-tools.org/u/ijbrewster)\
**Post date:** [October 31, 2022, 4:19pm UTC](https://forum.generic-mapping-tools.org/t/worst-gmt-command-line-ever/3396/1 "2022-10-31T16:19:18Z")

</div>

For an upcoming talk that I may (or may not if I get lucky) be giving, I would like to include a short tongue-in-cheek mention of GMT, specifically how convoluted/obscure the command line syntax can get. To that end, I thought I’d ask the community: what is the most complicated - as in, longest and hardest to tell at a glance what it is doing - GMT command line formulation you have come across? Bonus points if you can give an equivalent command in PyGMT using named parameters that is easier to decipher 🙂

…Of course, the point of the segment is how powerful GMT is, but a little self-deprecating humor is often fun…

---

<div class="post-metadata">

**Author:** ![PlanetGus](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/planetgus/32/303_2.png) [@PlanetGus](https://forum.generic-mapping-tools.org/u/PlanetGus)\
**Post date:** [October 31, 2022, 5:41pm UTC](https://forum.generic-mapping-tools.org/t/worst-gmt-command-line-ever/3396/2 "2022-10-31T17:41:24Z")

</div>

What about most (any) formula in `math` ?

---

<div class="post-metadata">

**Author:** ![ijbrewster](https://avatars.discourse-cdn.com/v4/letter/i/ce7236/32.png) [@ijbrewster](https://forum.generic-mapping-tools.org/u/ijbrewster)\
**Post date:** [October 31, 2022, 5:57pm UTC](https://forum.generic-mapping-tools.org/t/worst-gmt-command-line-ever/3396/3 "2022-10-31T17:57:44Z")

</div>

Sure. Looking at the documentation, I do like the following example:

```
gmt math -T0/360/1 2 PI MUL 360 DIV T MUL STO@kT COS @kT 2 MUL COS ADD @kT 3 MUL COS ADD = harmonics.txt

```

And also from the documentation, this basemap example:

```
gmt basemap -R1969-7-21T/1969-7-23T/0/1 -JX12c/0.5c -Bpxa6Hf1h -Bsxa1K -BS

```

…but I’m sure that could be beat by someone with a high degree of customization to their basemap 🙂

---

<div class="post-metadata">

**Author:** ![PlanetGus](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/planetgus/32/303_2.png) [@PlanetGus](https://forum.generic-mapping-tools.org/u/PlanetGus)\
**Post date:** [October 31, 2022, 7:16pm UTC](https://forum.generic-mapping-tools.org/t/worst-gmt-command-line-ever/3396/4 "2022-10-31T19:16:55Z")

</div>

> [@ijbrewster](#):
>
> high degree of customization to their basemap

The astro map from showcase is quite something 🙂

That’s also what makes GMT so great: the high degree of customization!
