Re: gmt2kml -L with a sting?
"Becker, Joseph J." <[email protected]> Mon, 14 Apr 2014 14:17:57 +0000
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <E4FNifIIEGrmhMrh4DcxZN_DJ1rDfOYrm7AzG0OCziMlzm3MdKiw0yzb8sUqsNuZigzM5nz5ujo@cipher.nrlssc.navy.mil> |
hmm, pretty sure the syntax is -L8:name and so on. (is the help is missing the “<“ before second “col:name>”) gmt2kml 4.5.12 [64-bit] - Convert GMT data tables to KML files for Google Earth usage: gmt2kml <infile> … [-L<col:name>,col:name>,...] —--- With OUT a column numbers I get the data in first column repeated over and over, and the bubble doesn’t open in GE $ tail AK.txt -151.604000 71.487900 -641 -894 253 -1 43 361934 /Volumes/RAID/multibeam/data/public/JAMSTEC/MR04-K05.cm $ gmt2kml AK.txt -Llat,lon,depth,pred,diff,flag,sid,t,name <Placemark> <name>Point 999</name> <ExtendedData> <Data name = ""> <value>-151.604</value> </Data> <Data name = ""> <value>-151.604</value> </Data> <Data name = ""> <value>-151.604</value> </Data> <Data name = ""> <value>-151.604</value> </Data> <Data name = ""> <value>-151.604</value> </Data> <Data name = ""> <value>-151.604</value> </Data> <Data name = ""> <value>-151.604</value> </Data> <Data name = ""> <value>-151.604</value> </Data> <Data name = ""> <value>-151.604</value> </Data> </ExtendedData> <styleUrl>#GMT-632-0</styleUrl> <Point> <coordinates>-151.604,71.4879,0</coordinates> </Point> </Placemark> but this mostly works except of the text gets turned into Nan $ gmt2kml AK.txt -L7:time,0:lat,1:lon,2:depth,3:predicted,4:diff,5:sigma_d,6:SID,8:file <Placemark> <ExtendedData> <Data name = "time"> <value>361934</value> </Data> <Data name = "lat"> <value>-151.604</value> </Data> <Data name = "lon"> <value>71.4879</value> </Data> <Data name = "depth"> <value>-641</value> </Data> <Data name = "predicted"> <value>-894</value> </Data> <Data name = "diff"> <value>253</value> </Data> <Data name = "sigma_d"> <value>-1</value> </Data> <Data name = "SID"> <value>43</value> </Data> <Data name = "file"> <value>NaN</value> </Data> </ExtendedData> <styleUrl>#GMT-719-0</styleUrl> <Point> <gx:altitudeMode>relativeToSeaFloor</gx:altitudeMode> <coordinates>-151.604,71.4879,-641</coordinates> </Point> </Placemark> Thanks, JJ ————— Joseph J Becker, PhD ASEE Postdoctoral Fellow, Naval Research Lab 1005 BALCH BLVD RM B37 STENNIS SPACE CENTER MS 39529-5001 USA cell: +1-504-252-8418 fax:+1-668-228-5752 On Apr 13, 2014, at 4:37 PM, Paul Wessel <[email protected]> wrote: > I dont think there are an column numbers in -L. You just have to arrange your input to be > lon lat DRFT044RR lat > > and then do > gmt2kml file.gmt -Lname,lat > > i.e., if you want 5 extra columns then -L will specify the 5 names and your data columns will have to have those 5 extra columns in that order. > > -p > > On Apr 13, 2014, at 10:37 AM, Becker, Joseph J. <[email protected]> wrote: > >> Basically I love gmt2kml. >> >> The output below is probably easier to understand than my question… >> >> === >> >> While >> >> gmt2kml file.gmt -L8:name,3:lat … >> To unsubscribe, send the message "signoff gmt-help" to [email protected]