# Problems generating a small circle: Arctic Circle

**URL:** <https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907>\
**Category:** Q&A\
**Created:** [May 5, 2023, 10:19am UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907 "2023-05-05T10:19:42Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [May 5, 2023, 10:19am UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/1 "2023-05-05T10:19:42Z")

</div>

On one of my previous plots, I’ve generated a segment of the Arctic Circle with:

```
gmt project -C-40/66.5629444444 -E40/66.5629444444 -G0.01/23.4370555556

```

When I tried to plot the complete Arctic Circle, i.e. 0 - 360, I got nothing; I guess it due to [this](https://docs.generic-mapping-tools.org/dev/project.html#g): _Note, when using -C and -E to generate a circle that goes through the center and end point, the center and end point cannot be farther apart than 2|colat|._

Searching the forum, I found [this](https://flint.soest.hawaii.edu/t/plotting-a-small-circle-by-giving-the-small-circle-pole-coordinates-and-either-the-radius-or-another-long-lat-on-the-small-circle/1709/2?u=andreas) nice list of what I might try.

`project -Z` (_[..] to create the coordinates of a full small circle_) seems to be the appropriate thing to do. My attempt:

```auto
gmt project -Z2604.2361 -C0/90 -G0.1
             | | |
             1 2 3

```

1. Difference in latitude from north pole, (90) to arctic circle (66°33′49.5″), expressed as km. I want a circle, so major axis = minor axis.
2. Origin, north pole, (0,90).
3. Output sample density.

This produces a circle that is too far north (red). A segment of the Arctic Circle that is correct is seen in blue. See script and figure below. What am I doing wrong?

```auto
gmt begin arctic-circle png

gmt basemap -JS0/90/20c -Bxafg -Bya5f1g5 -R0/360/60/90
gmt coast -W -Dc
gmt project -Z2604.2361 -C0/90 -G0.1 | gmt plot -Wthick,red,- -l"polar circle with project -Z"
gmt project -C-40/66.5629444444 -E40/66.5629444444 -G0.01/23.4370555556 | gmt plot -Wthick,blue,- -l"polar circle with project -C -E"

gmt end show

```

 ![arctic-circle](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/2/2bf9eab661bc3880100b687c85e3aec0dc048956.png)

---

<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:** [May 5, 2023, 10:27am UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/2 "2023-05-05T10:27:22Z")

</div>

Would overlay a cartesian grid do the trick?

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [May 5, 2023, 11:22am UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/3 "2023-05-05T11:22:31Z")

</div>

Not sure, or tested. But I would really like to find out why I don’t get the expected result in my initial post.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 5, 2023, 11:27am UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/4 "2023-05-05T11:27:44Z")

</div>

Semi-axis versus full axis

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [May 5, 2023, 12:21pm UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/5 "2023-05-05T12:21:10Z")

</div>

And there we have it; double the distance and it lines up with the ‘other’ (correct) arctic circle.

So the distance specified in **-Z** is full axis, and not semi?  
Is this something that wise people just know, or could it be mentioned in the docs?

```auto
gmt begin arctic-circle png

gmt basemap -JS0/90/20c -Bxafg -Bya5f1g5 -R0/360/60/90
gmt coast -W -Dc
gmt project -Z5208.4722 -C0/90 -G0.1 | gmt plot -Wthick,red,- -l"polar circle with project -Z"
gmt project -C-40/66.5629444444 -E40/66.5629444444 -G0.01/23.4370555556 | gmt plot -Wthick,blue,- -l"polar circle with project -C -E"

gmt end show

```

 ![arctic-circle](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/0/00acdf6103e713ebed2f7efe66d0f6fe96733bee.png)

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 5, 2023, 3:02pm UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/6 "2023-05-05T15:02:46Z")

</div>

Hah. Well, I just read project -Z documentation and it talks about major and minor axis, not semi-axis, so at least the documentation is correct. And yes, wise people just know these things (after reading the docs!).

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [May 5, 2023, 3:29pm UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/7 "2023-05-05T15:29:33Z")

</div>

Thanks Paul. The confusion just hits the roof sometimes.

---

<div class="post-metadata">

**Author:** ![Andreas](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Andreas](https://forum.generic-mapping-tools.org/u/Andreas)\
**Post date:** [May 5, 2023, 5:52pm UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/8 "2023-05-05T17:52:37Z")

</div>

Isn’t semi-axis the most common term used in gmt to specify these kind of things? I may have assumed that this was (implicitly) the case here too. No excuse though. You may force feed me lutefisk.

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [May 6, 2023, 9:05am UTC](https://forum.generic-mapping-tools.org/t/problems-generating-a-small-circle-arctic-circle/3907/9 "2023-05-06T09:05:13Z")

</div>

The ellipses in **plot** are specified the same way (full diameter if circle) so I think we are consistent
