# Old gmt version to new one

**URL:** <https://forum.generic-mapping-tools.org/t/old-gmt-version-to-new-one/2457>\
**Category:** Q&A\
**Created:** [December 19, 2021, 2:51pm UTC](https://forum.generic-mapping-tools.org/t/old-gmt-version-to-new-one/2457 "2021-12-19T14:51:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Boulanouar](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/boulanouar/32/491_2.png) [@Boulanouar](https://forum.generic-mapping-tools.org/u/Boulanouar)\
**Post date:** [December 19, 2021, 2:51pm UTC](https://forum.generic-mapping-tools.org/t/old-gmt-version-to-new-one/2457/1 "2021-12-19T14:51:04Z")

</div>

[qf15.txt](https://forum.generic-mapping-tools.org/uploads/short-url/kCJ4AKvOqetpcAuLyzwNw2y2UNu.txt) (2.2 KB)

 ![gmtset](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/3/3aab2ac283d8f779994ea2ac5d2ddabb8f35778e.png)  
Dear GMT users,  
I am trying to run an Gmt code but I got same errors. Please see the attachment files ( the code and the error image )  
Any one help me to solve this problem would be appreciated  
Have a great day

---

<div class="post-metadata">

**Author:** ![EJFielding](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/ejfielding/32/82_2.png) [@EJFielding](https://forum.generic-mapping-tools.org/u/EJFielding)\
**Post date:** [December 19, 2021, 4:35pm UTC](https://forum.generic-mapping-tools.org/t/old-gmt-version-to-new-one/2457/2 "2021-12-19T16:35:07Z")

</div>

Hello,  
You seem to be confusing the csh shell variables with GMT parameters. The first part of your script should be setting csh variables but you added “gmt” before the commands. You should only add “gmt” before gmt commands, not the csh commands like “set”.

---

<div class="post-metadata">

**Author:** ![Boulanouar](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/boulanouar/32/491_2.png) [@Boulanouar](https://forum.generic-mapping-tools.org/u/Boulanouar)\
**Post date:** [December 19, 2021, 6:22pm UTC](https://forum.generic-mapping-tools.org/t/old-gmt-version-to-new-one/2457/3 "2021-12-19T18:22:41Z")

</div>

Dear EJFielding for your quick answer,  
Yes, I removed the gmt from the setting csh variables and I got this error,  
Could you please help me to fix it?  
Best regards

 ![new_error](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/6/6bd367c56077407e9a548ea4d2e8a1d8d47da518.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:** [December 19, 2021, 9:52pm UTC](https://forum.generic-mapping-tools.org/t/old-gmt-version-to-new-one/2457/4 "2021-12-19T21:52:29Z")

</div>

I see no further errors, just warning and information messages. Some are related to your script probably using GMT 4 syntax which results in a warning, and the surface message means you picked a bad combination of -Rw/e/s/n and -I so that the number of nodes in x and y are prime. This means slow convergence since no common factors.

---

<div class="post-metadata">

**Author:** ![Boulanouar](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/boulanouar/32/491_2.png) [@Boulanouar](https://forum.generic-mapping-tools.org/u/Boulanouar)\
**Post date:** [December 20, 2021, 6:51pm UTC](https://forum.generic-mapping-tools.org/t/old-gmt-version-to-new-one/2457/5 "2021-12-20T18:51:01Z")

</div>

Dear pwessel,  
Thank you so much for your explanation. The problem is solved  
Have a nice time
