I am a long time GMT user living in Sapporo, Japan.
I use GMT to make rainfall distribution maps during floods.
I have a question about GMT6’s modern mode.
I am running GMT in a batch file on windows.
I am not using UNIX or Python.
I have installed gmt-6.2.0-win64.exe on my windows machine.
I can draw well in classic mode, but not at all in modern mode.
But in modern mode, I can’t draw at all.
Is there anything I can do to make it work in modern mode?
Any advice would be greatly appreciated.
Thanks for the reply.
As for the modern mode script.
Here is a script I found on a web site that draws the coastline of NewZealand.
gmt begin NewZealandMap png
gmt coast -JM12c -RNZ -Ba -W0.5p -A10000
gmt end show
Save this script as a windows batch file and run.
When I save this script as a windows batch file and run it, I do not get the resulting image that I should get.
I would like some advice on how to fix this.
Dear Dr. Joaqim
Thank you for your reply.
I tried the one-liner script on the command prompt and got an error. It is as shown in the attached image.
Could you please let me know if there is any special setting to make modern mode work on command prompt?
You have non-finished modern mode session. Probably the result of running NZ.bat
Run gmt clear sessions and repeat the one-liner.
The docs explain well how modern mode works.
Dear Professor joaqim
I tried to run gmt clear sessions as you told me, but it still didn’t work.
It seems that I am incompatible with modern mode, so for the time being I will use GMT in classic mode, which is safer and more secure.
Hi Weiji14.
This is Murakami from Sapporo, who is struggling with Modern mode.
If it’s possible, could you please convert the following classic version commands to modern mode?
That command is part of an overlay (-K) so it cannot by itself be converted to modern mode. There would have to be a full script that makes a plot in classic mode. For more details on modern mode you can see the open access publication on GMT 6.
Thank you all for your comments.
I have found it difficult to run modern mode on my computer environment.
Even the example modern mode script on GMT’s web site doesn’t work on windows command prompt. Why this is is too difficult for me to figure out.
From now on, I’ll use GMT in classic mode.