pont-us / PuffinPlot

A program to plot and analyse palaeomagnetic data
GNU General Public License v3.0
3 stars 0 forks source link

GMT integration? #381

Open pont-us opened 3 years ago

pont-us commented 3 years ago

Another Magnetic Moments suggestion. Hard to see how it could be done well. I could of course spit out GMT scripts, run them, and display the results (providing GMT's installed and PP can find it) but it feels a little clunky. Think about incorporating better map-plotting facilities in PP itself (what's that Java mapping library?) or explicitly supporting some kind of GMT-friendly output format.

[2018-03-21 Wed] GMT seems to have a "modern" scripting mode now which makes it a little less painful to use. If I am going to do anything on this, it would make sense to wait until PuffinPlot's on Java >=9 so I can use the new Process API – that is, if I'm planning to call out directly to GMT rather than just leaving it to the user. Currently it looks as though Java 11 (scheduled for Septeber 2018, but who knows?) will be the next LTS release.

One thing against working on this is that it's rather a vague request. What exactly do users want to do with GMT? And I've forgotten who asked about it so I can't even ask them. That's probably an argument for the "just spit out a script" approach: users can post-process it and fettle it into their own workflow.

Hmmm… on consideration, a simple "export poles to GMT map script" should be pretty straightforward. Maybe I should give it a go for shits and giggles.