# Problems with plotting polar stereographic data, change from version 6.3 to 6.5

**URL:** https://forum.generic-mapping-tools.org/t/problems-with-plotting-polar-stereographic-data-change-from-version-6-3-to-6-5/5475
**Category:** Q&A
**Created:** [October 22, 2024, 8:08am UTC](https://forum.generic-mapping-tools.org/t/problems-with-plotting-polar-stereographic-data-change-from-version-6-3-to-6-5/5475 "2024-10-22T08:08:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Eva](https://avatars.discourse-cdn.com/v4/letter/e/dbc845/32.png) [@Eva](https://forum.generic-mapping-tools.org/u/Eva)
#### Post date: [October 22, 2024, 8:08am UTC](https://forum.generic-mapping-tools.org/t/problems-with-plotting-polar-stereographic-data-change-from-version-6-3-to-6-5/5475/1 "2024-10-22T08:08:51Z")

</div>

Hi!  
I previously successfully plotted a netcdf grid given in polar stereographic coordinates together with coastlines for both Greenland and Antarctica with the following code:

```auto
gmt begin trend_gis
scale="1:20000000"
gmt grdimage GRAVIS-3_GIS_trend.nc?trend -Jx$scale -Bswen+n
gmt coast -Js-45/90/70/$scale -A1000+ag -Di -W0.5,0 
gmt end show

gmt begin trend_ais
scale="1:30000000" 
gmt grdimage GRAVIS-3_AIS_trend.nc?trend -Jx$scale -Bswen+n
# plot groundingline in polarstereographic projection
gmt coast -Js0/-90/71/$scale -A1000+ag -Di -W0.5,0 -Swhite
gmt end show

```

This gave me the following warnings, but they worked fine:

```auto
coast [WARNING]: For a UTM or TM projection, your region -800000/950000/-3400000/-700000 is too large to be in degrees and thus assumed to be in meters
coast [WARNING]: For a UTM or TM projection, your region -2900000/2900000/-2400000/2400000 is too large to be in degrees and thus assumed to be in meters

```

[trend\_gis.pdf](https://forum.generic-mapping-tools.org/uploads/short-url/sZhcjulB4LzV1fOp7iG7dlW41aB.pdf) (48.1 KB)  
[trend\_ais.pdf](https://forum.generic-mapping-tools.org/uploads/short-url/qsb1xY7KLH3x7p9aJNkH9AVNKz.pdf) (78.5 KB)

This was on my old PC with GMT version 6.3.0. Now, with a new PC and GMT version 6.5.0 it is not working any more, and I get the following errors (for both the same):

> coast [ERROR]: Map region exceeds 360 degrees  
> coast [ERROR]: General map projection error

Any idea how I can fix this? Of course I could downgrade to version 6.3 again, but this does not seem a permanent solution. I have to do this kind of plot quite often…

Thank you very much!  
Best, Eva

Netcdf files here: [https://nextcloud.gfz-potsdam.de/s/LMbFNgr4CEkKqFj](https://nextcloud.gfz-potsdam.de/s/LMbFNgr4CEkKqFj)

---

<div class="post-metadata">

### Author: ![mkononets](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/mkononets/32/4029_2.png) [@mkononets](https://forum.generic-mapping-tools.org/u/mkononets)
#### Post date: [October 22, 2024, 8:24pm UTC](https://forum.generic-mapping-tools.org/t/problems-with-plotting-polar-stereographic-data-change-from-version-6-3-to-6-5/5475/2 "2024-10-22T20:24:56Z")

</div>

seems like you need to explicitly specify your region for `coast`, region autodetection using your data seems working:

```auto
gmt coast -RGRAVIS-3_GIS_trend.nc?trend -Js-45/90/70/$scale -A1000+ag -Di -W0.5,0

```

gmt 6.3 works both ways, 6.5 seems to require the explicit region specification shown above. I think I remember reading something about the GMT development team made improvements necessary to handle “data cubes”, including multi-variable netcdf files like yours, but I don’t remember any details. Maybe that was not directly related.

---

<div class="post-metadata">

### Author: ![Eva](https://avatars.discourse-cdn.com/v4/letter/e/dbc845/32.png) [@Eva](https://forum.generic-mapping-tools.org/u/Eva)
#### Post date: [October 23, 2024, 11:10am UTC](https://forum.generic-mapping-tools.org/t/problems-with-plotting-polar-stereographic-data-change-from-version-6-3-to-6-5/5475/3 "2024-10-23T11:10:35Z")

</div>

Thank you very much mkononets. You solved my problem 🙂
