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

Genti Toyokuni toyokunigenti at gmail.com
Tue Nov 26 02:34:45 AEDT 2019


Dear John and Christian,

Thank you very much for letting me know several ways to solve this problem.
First I tried to run "convert_xy_to_gplates.py". However I received
several syntax errors, which may be due to difference in version of
Python in my environment.
(I am using Python 2.5.4 in Vine Linux. I should run your programs in
Python 3.x)

Second I tried to open my data files directly in GPlates but it also
showed many errors.

The attached files are as follows:
coast-eclip.dat: Coastline data (lon, lat) in the ecliptic coordinates
which was chosen for the central Greenland to be at (lon=90deg,
lat=0deg).
volcano_lonlat_eclip.dat: Location of volcanoes (lon, lat) in the same
coordinates.

If you have time, would you please confirm that you can convert these
files into "gpmlz" format?

Best wishes,

Genti Toyokuni


2019年11月25日(月) 14:06 John Cannon <john.cannon at sydney.edu.au>:

>
> 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/xZenCK1qJZtgzkwKHMdh4P?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/8x5KCL7rK8txy2OqHquHAw?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
>
> _______________________________________________
> GPlates-discuss mailing list
> GPlates-discuss at mailman.sydney.edu.au
> https://mailman.sydney.edu.au/mailman/listinfo/gplates-discuss
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coast-eclip.dat
Type: application/octet-stream
Size: 2285980 bytes
Desc: not available
URL: <http://mailman.sydney.edu.au/pipermail/gplates-discuss/attachments/20191126/b1e666a9/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: volcano_lonlat_eclip.dat
Type: application/octet-stream
Size: 48173 bytes
Desc: not available
URL: <http://mailman.sydney.edu.au/pipermail/gplates-discuss/attachments/20191126/b1e666a9/attachment-0003.obj>


More information about the GPlates-discuss mailing list