gmt basemap -R... -J... -A works in a multi-call modern mode session, works as a classic mode call but fails as a modern mode one-liner with weird error messages, see below. Tried with gmt version 6.6.0.
from the docs:
-A[file]
No plotting is performed. Instead, we determine the geographical coordinates of
the polygon outline for the (possibly oblique) rectangular map domain. The plot domain
must be given via [-R](https://docs.generic-mapping-tools.org/dev/basemap.html#r) and
[-J](https://docs.generic-mapping-tools.org/dev/basemap.html#j), with no other options
allowed. The sampling interval is controlled via [MAP_LINE_STEP](https://docs.generic-mapping-tools.org/dev/gmt.conf.html#term-MAP_LINE_STEP)
parameter. The coordinates are written to file or to standard output if no file is specified.
gmt basemap -JS0/-90/20c -R3000+uk -Aout.txt fails with the following error message with and without out.txt requested after -A:
gmt [ERROR]: Shared GMT module not found: basemap
ERROR: No module named basemap was found. This could mean one of four cases:
1. There actually is no such module; please check your spelling.
2. You used a modern mode module name while running in GMT classic mode.
3. Module exists in the GMT supplemental library, but the library could not be found.
4. Module exists in a GMT custom library, but none was specified via GMT_CUSTOM_LIBS.
Shared libraries must be in standard system paths or set via environmental parameter LD_LIBRARY_PATH.
gmt basemap -JS0/-90/20c -R3000+uk -Aout.txt -png quick also fails:
psbasemap [ERROR]: Option -p (ng): Syntax is -p[x|y|z]<azim>[/<elev>[/<zlevel>]][+w<lon0>/<lat0>[/<z0>]][+v<x0>/<y0>]
psbasemap [ERROR]: Option -p parsing failure. Correct syntax:
-p[x|y|z]<azim>[/<elev>[/<zlevel>]][+w<lon0>/<lat0>[/<z0>]][+v<x0>/<y0>]
Select a 3-D pseudo perspective view. Append the <azimuth>/<elevation> of
the viewpoint [180/90], and when used with -Jz|Z, optionally add /<zlevel>
for basemap level [bottom of z-axis]. Prepend x or y to plot against the
"wall" x = level or y = level [z]. For a plain rotation about the z-
axis, give rotation angle only and optionally use modifiers +w or +v to
select location of axis:
+w Specify a fixed coordinate point [region center].
+v Set a fixed projected point [panel center].
psbasemap [ERROR]: Offending option -png
gmt basemap -JS0/-90/20c -R3000+uk -Aout.txt -png quick -B terminates w/o errors but produces neither the -A output nor the plot.
A classic mode call gmt psbasemap -JS0/-90/20c -R3000+uk -A produces the desired output.
gmt basemap -R... -J... -Aworks in a multi-call modern mode session, works as a classic mode call but fails as a modern mode one-liner with weird error messages, see below. Tried with gmt version 6.6.0.from the docs:
gmt basemap -JS0/-90/20c -R3000+uk -Aout.txtfails with the following error message with and withoutout.txtrequested after-A:gmt basemap -JS0/-90/20c -R3000+uk -Aout.txt -png quickalso fails:gmt basemap -JS0/-90/20c -R3000+uk -Aout.txt -png quick -Bterminates w/o errors but produces neither the-Aoutput nor the plot.A classic mode call
gmt psbasemap -JS0/-90/20c -R3000+uk -Aproduces the desired output.