-
Notifications
You must be signed in to change notification settings - Fork 400
Description
Description of the desired feature
This issue started with a GMT Julia discussion. It is a lot of work to implement an interrupted projection in GMT since the map boundaries are all over and lines and polygons should be properly clipped across these many boundaries. The alternative solution is to have a single module that just handles interrupted projections (piecemeal) and accepts the gmt command(s) you wish to replicate across the pieces. I have implemented this scheme (more or less) as a bash script, and can easily make maps like these. Here is the land-centric Goode interrupted homolosine projection of our 2m DEM with shading:
Similarly, here are crustal ages on the ocean-centric Goode interrupted homolosine projection:
These are always and only global maps with one of these configurations. There are also other interrupted projections like the interrupted sinusoidal, for instance. I imagine a syntax like this:
gmt interrupt -Tprojtype/scale -F"cmd1; cmd2; ..." [ -O -K -P -X -Y]
where one can stack more than one command to be replicated at the various pieces involved. Above for the DEM, the cmd was just "grdimage @earth_relief_02m -I+d". Given the unlimited number of cmd one can stack, one can plot grids or images and overlay land or data points, lines, or polygons or text or vectors etc.
Implementing this will be simple; the alternative is hard. Pinging @GenericMappingTools/core for feedback. For instance, not clear to me how the -F option would be wrapped in the externals.

