[GPlates-discuss] Conversion of text data for plotting lines and points

John Cannon john.cannon at sydney.edu.au
Mon Nov 25 16:06:14 AEDT 2019


Hi Genti,

There's an existing pyGPlates script to do both these things.  I've just uploaded it to PlateTectonicTools:

https://protect-au.mimecast.com/s/gPuWC81Zj6tVm7DEhn9MXk?domain=github.com

It works on its own, so if you want you can just copy it from there instead of installing the entire package (eg, hit 'raw' and copy'n'paste - sorry I'm not very experienced with Git).


To see the options run:

    python convert_xy_to_gplates.py --help

...and you'll also see some examples of what the script does.


For your second point, you can use the "-s" option (eg, "-s depth") and then the third column of your XY file (depth) will then show up in GPlates (once you've loaded the generated GPML file) as a separate colour on each point (that you can then configure with colour palettes).


Before running the script, you'll need to install pyGPlates (and it currently only works with Python 2.7, though next year will also support Python 3):
https://protect-au.mimecast.com/s/qATVC91ZkQtyJ5LDIEzOCR?domain=gplates.org

Regards,
John

-----Original Message-----
From: GPlates-discuss <gplates-discuss-bounces at mailman.sydney.edu.au> On Behalf Of Genti Toyokuni
Sent: Monday, 25 November 2019 3:33 PM
To: gplates-discuss at mailman.sydney.edu.au
Subject: [GPlates-discuss] Conversion of text data for plotting lines and points

Dear Sirs;

Thank you very much for providing us a great software!
I want to ask you the following two points:

(1) How can I convert a simple text list of longitudes and latitudes including a ">" sign as a line separator, which is commonly used in Generic Mapping Tools, into "gpmlz" format? I want to plot several lines specified by the list on the Earth's surface.

(2) How can I convert a simple text list of longitudes, latitudes, and depths showing locations of volcanoes, hotspots, and hypocenters into a file format which can be opend by GPlates?

I am sorry for my very basic questions.

Best wishes,

Genti Toyokuni

_______________________________________________
GPlates-discuss mailing list
GPlates-discuss at mailman.sydney.edu.au
https://mailman.sydney.edu.au/mailman/listinfo/gplates-discuss



More information about the GPlates-discuss mailing list