Hi @moderators ,
I vaguely remember mentioning it at some point but never formally asked : do futur version of GMT (7?) plan to adopt a syntax closer to other softwares ? (like latex or julia?)
This come with the whole discussion about long-name options
\begin{environment}[options]
commands [...]
\end{environment}
-OR-
environment{options,...
commands{options}
}
IMO the first method is cleaner and closer to what already exists, but the second seems more natural for long-names.
e.g.:
\begin{gmt}[format="png,pdf"]
makecpt palette="rainbow" range="0,100,1" output="mycpt"
grdfilter region="0,360/-90/90" type="median" flag="4" input="x.nc" step="10" output="y.nc"
\begin{figure}[subplot="1,2",name="myfigure"]
\begin{subplot}[position="1,1",size="10cm,5cm"]
coast region="0,360/-90/90" projection="mercator" resolution="crude" clip="on"
grdimage input="@earth_relief_03m" intensity="defaults" color="mycpt"
coast clip="off"
\end{subplot}
[...]
\end{figure}
[...]
\end{gmt}
VS
gmt[format="png,pdf"]{
makecpt[palette="rainbow", range="0,100,1", output="mycpt"]
grdfilter[region="0,360/-90/90", type="median", flag="4", input="x.nc", step="10", output="y.nc"]
figure[subplot="1,2",name="myfigure"]{
subplot[position="1,1",size="10cm,5cm"]{
coast[region="0,360/-90/90", projection="mercator", resolution="crude", clip="on"]
grdimage[input="@earth_relief_03m", intensity="defaults", color="mycpt"]
coast[clip="off"]
}
[...]
}
[...]
} # close GMT session
Thoughts ?