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

Eglington, Bruce bruce.eglington at usask.ca
Tue Nov 26 02:42:27 AEDT 2019


Hi
  Do you use any of the standard GIS software packages? If so, the easiest way to achieve what you want (since you already know GIS), is to create shapefiles for your features. Then you just import the shapefile to GPlates and join to the plate polygons in your rotation setup.

Bruce


Bruce Eglington (Ph.D.)
Murray Pyke Chair

Geological Sciences
114 Science Place
Saskatoon
Saskatchewan
S7N 5E2
Canada

bruce.eglington at usask.ca
Ph: +1-306-966-5732



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

CAUTION: This email originated from outside of the University of Saskatchewan. Do not click links or open attachments unless you recognize the sender and know the content is safe. If in doubt, please forward suspicious emails to phishing at usask.ca


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/Cr95CyoNVrcvqO6nsZivPJ?domain=github.com
> t_xy_to_gplates.py
>
> 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/cvh8CzvOWKilQW8LiXAQ5h?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
>


More information about the GPlates-discuss mailing list