Re: psxy and segment headers
Paul Wessel <[email protected]> Wed, 30 Jul 2014 14:49:49 -1000
| Newsgroups | gmane.comp.gis.gmt.user |
|---|---|
| Message-ID | <[email protected]> |
--Apple-Mail=_1A71CF3B-3813-49AE-9B8A-1094BDEB88DE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Oops, just noticed that - will have a look. -p On Jul 30, 2014, at 2:17 PM, cj <[email protected]> wrote: > Hi, >=20 > Just fyi, that, "there are some stray fault symbols being plotted on = the left side of the map beyond the map boundaries, see attached PS/PDF = file" Christian mentioned, still happens in r13394. >=20 > -cj >=20 > On Jul 30, 2014, at 6:40 PM, Paul Wessel <[email protected]> wrote: >=20 >> Hi Christian- >>=20 >> OK, fixed in r13394. It will accept -Sf or -Sq with no args and wait = for segment header parsing. >> -p >>=20 >>=20 >> On Jul 30, 2014, at 5:26 AM, Christian Heine = <[email protected]> wrote: >>=20 >>> Hi Paul, Russell, >>>=20 >>> by pure coincidence, I just wanted to plot plate boundaries using = the same file myself and struggled a bit (should read my own blog I = suppose)... However, the command you specify below works for me as = expected on Mac OS X 10.9 using 5.1.2_r13178 [64-bit], it also did work = on older version. Maybe some file encoding issues? >>>=20 >>> This feature was implemented by Paul in early Feb 2012 (going by my = email), not sure which GMT version this corresponds to but I reckon it = was an early GMT 5 version. So it's been around for a bit. >>>=20 >>> @Paul: related to this - why is it necessary to specify the symbol = size in the call to psxy when it is specified for all segment headers? = When I try to call "gmt psxy -S" on that very same file Russ is quoting, = I get: >>>=20 >>> psxy: Segment header tries to switch to a line symbol like quoted = line or fault - ignored >>>=20 >>> Also, it seems that there are some stray fault symbols being plotted = on the left side of the map beyond the map boundaries, see attached = PS/PDF file. >>>=20 >>> Command: >>> gmt psxy -JN180/22 -Rg PB2002_boundaries.gmt -W0.5p,red -Sf0.25/3p = -Gred -Ba30 > out.ps >>>=20 >>> [GMT5 version as specified above] >>>=20 >>> Cheers, >>> Christian >>>=20 >>>=20 >>> Mailing list for GMT discussions of all kinds. If you are not sure = you have found a bug, discuss it here first. >>> To formally report bugs or request features, please register and add = New Issue on gmt.soest.hawaii.edu >>> To unsubscribe, send the message "signoff gmt-help" to = [email protected] >>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use = forum on gmt.soest.hawaii.edu instead. >>> <out.pdf> >>> On 30 Jul 2014, at 1:18 am, Paul Wessel <[email protected]> wrote: >>>=20 >>>> Pretty sure this requires at least 5.1.1 or later (i.e., svn = version). >>>> -p >>>>=20 >>>> On Jul 29, 2014, at 1:09 PM, Russell Cuthbertson = <[email protected]> wrote: >>>>=20 >>>>> I'm trying to implement the mods that Christian Heine >>>>> = (http://tectonicwaters.wordpress.com/2012/06/28/plate-boundaries-for-gmt5s= -p >>>>> sxy/) has done to Peter Bird's tectonic plates file >>>>> (peterbird.name/oldFTP/PB2002/).=20 >>>>> The -Sf section headers are meant to create the various symbols = for each >>>>> type of plate boundary.=20 >>>>>=20 >>>>> The command is meant to be: >>>>> psxy -J -R PB2002_boundaries.gmt -W0.5p,red -O -Sf0.25/3p -Gred >>>>> -Ba30:."Bird's_Plate_Boundaries" >> out.ps >>>>>=20 >>>>> But all I get is: >>>>> psxy: Warning: # not a valid number and may not be decoded = properly. >>>>> psxy: Mismatch between actual (2) and expected (3) fields near = line 22 >>>>>=20 >>>>> Here is a snippet of the relevant bit of the file (with line = numbers) >>>>> 18: # >>>>> 19: # >>>>> = --------------------------------------------------------------------------= -- >>>>> # >>>>> 20: > AF-AN Mueller et al. [1987] =20 >>>>> 21: > -Sf0.45/3p >>>>> 22: -0.4379 -54.8518 >>>>>=20 >>>>> It appears to be recognising segment headers OK. gmtdefaults = shows: >>>>> IO_SEGMENT_MARKER =3D > >>>>>=20 >>>>> What else is it expecting? >>>>>=20 >>>>> I'm using 5.1.0 >>>>>=20 >>>>> RussC >>>>>=20 >>>>> Mailing list for GMT discussions of all kinds. If you are not = sure you have found a bug, discuss it here first. >>>>> To formally report bugs or request features, please register and = add New Issue on gmt.soest.hawaii.edu >>>>> To unsubscribe, send the message "signoff gmt-help" to = [email protected] >>>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use = forum on gmt.soest.hawaii.edu instead. >>>>=20 >>>> Mailing list for GMT discussions of all kinds. If you are not sure = you have found a bug, discuss it here first. >>>> To formally report bugs or request features, please register and = add New Issue on gmt.soest.hawaii.edu >>>> To unsubscribe, send the message "signoff gmt-help" to = [email protected] >>>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use = forum on gmt.soest.hawaii.edu instead. >>>=20 >>>=20 >>> Mailing list for GMT discussions of all kinds. If you are not sure = you have found a bug, discuss it here first. >>> To formally report bugs or request features, please register and add = New Issue on gmt.soest.hawaii.edu >>> To unsubscribe, send the message "signoff gmt-help" to = [email protected] >>> Note: gmt-help will become obsolete on Sept 1, 2014 - please use = forum on gmt.soest.hawaii.edu instead. >>=20 >> Mailing list for GMT discussions of all kinds. If you are not sure = you have found a bug, discuss it here first. >> To formally report bugs or request features, please register and add = New Issue on gmt.soest.hawaii.edu >> To unsubscribe, send the message "signoff gmt-help" to = [email protected] >> Note: gmt-help will become obsolete on Sept 1, 2014 - please use = forum on gmt.soest.hawaii.edu instead. > Mailing list for GMT discussions of all kinds. If you are not sure you = have found a bug, discuss it here first. To formally report bugs or = request features, please register and add New Issue on = gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" = to [email protected] Note: gmt-help will become obsolete on Sept = 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" to [email protected] Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. --Apple-Mail=_1A71CF3B-3813-49AE-9B8A-1094BDEB88DE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Oops, = just noticed that - will have a look.<div>-p</div><div><br><div><div>On = Jul 30, 2014, at 2:17 PM, cj <<a = href=3D"mailto:[email protected]">[email protected]</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><blockquote type=3D"cite"><meta = http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf-8"><div = dir=3D"auto"><div>Hi,</div><div><br></div><div>Just fyi, that, "<i>there = are some stray fault symbols being plotted on the left side of the map = beyond the map boundaries, see attached PS/PDF file</i>" Christian = mentioned, still happens in = r13394.</div><div><br></div><div>-cj</div><div><br>On Jul 30, 2014, at = 6:40 PM, Paul Wessel <<a = href=3D"mailto:[email protected]">[email protected]</a>> = wrote:<br><br></div><blockquote type=3D"cite"><span>Hi = Christian-</span><br><span></span><br><span>OK, fixed in r13394. = It will accept -Sf or -Sq with no args and wait for segment header = parsing.</span><br><span>-p</span><br><span></span><br><span></span><br><s= pan>On Jul 30, 2014, at 5:26 AM, Christian Heine <<a = href=3D"mailto:[email protected]">[email protected]</a>> = wrote:</span><br><span></span><br><blockquote type=3D"cite"><span>Hi = Paul, Russell,</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>by pure coincidence, I just wanted to plot plate = boundaries using the same file myself and struggled a bit (should read = my own blog I suppose)... However, the command you specify below works = for me as expected on Mac OS X 10.9 using 5.1.2_r13178 [64-bit], it also = did work on older version. Maybe some file encoding = issues?</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>This feature was implemented by Paul in early Feb = 2012 (going by my email), not sure which GMT version this corresponds to = but I reckon it was an early GMT 5 version. So it's been around for a = bit.</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>@Paul: related to this - why is it necessary to = specify the symbol size in the call to psxy when it is specified for all = segment headers? When I try to call "gmt psxy -S" on that very same file = Russ is quoting, I get:</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>psxy: Segment header tries to switch to a line = symbol like quoted line or fault - = ignored</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>Also, it seems that there are some stray fault = symbols being plotted on the left side of the map beyond the map = boundaries, see attached PS/PDF file.</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>Command:</span><br></blockquote><blockquote = type=3D"cite"><span>gmt psxy -JN180/22 -Rg PB2002_boundaries.gmt = -W0.5p,red -Sf0.25/3p -Gred -Ba30 > = out.ps</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>[GMT5 version as specified = above]</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>Cheers,</span><br></blockquote><blockquote = type=3D"cite"><span>Christian</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>Mailing list for GMT discussions of all kinds. = If you are not sure you have found a bug, discuss it here = first.</span><br></blockquote><blockquote type=3D"cite"><span>To = formally report bugs or request features, please register and add New = Issue on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a></span><br><= /blockquote><blockquote type=3D"cite"><span>To unsubscribe, send the = message "signoff gmt-help" to <a = href=3D"mailto:[email protected]">[email protected]</a></s= pan><br></blockquote><blockquote type=3D"cite"><span>Note: gmt-help will = become obsolete on Sept 1, 2014 - please use forum on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a> = instead.</span><br></blockquote><blockquote = type=3D"cite"><span><out.pdf></span><br></blockquote><blockquote = type=3D"cite"><span>On 30 Jul 2014, at 1:18 am, Paul Wessel <<a = href=3D"mailto:[email protected]">[email protected]</a>> = wrote:</span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><span>Pretty sure this requires = at least 5.1.1 or later (i.e., svn = version).</span><br></blockquote></blockquote><blockquote = type=3D"cite"><blockquote = type=3D"cite"><span>-p</span><br></blockquote></blockquote><blockquote = type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><span>On Jul 29, 2014, at 1:09 = PM, Russell Cuthbertson <<a = href=3D"mailto:[email protected]">[email protected]= .AU</a>> wrote:</span><br></blockquote></blockquote><blockquote = type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>I'm trying to implement the mods that Christian = Heine</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>(<a = href=3D"http://tectonicwaters.wordpress.com/2012/06/28/plate-boundaries-fo= r-gmt5s-p">http://tectonicwaters.wordpress.com/2012/06/28/plate-boundaries= -for-gmt5s-p</a></span><br></blockquote></blockquote></blockquote><blockqu= ote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>sxy/) has done to Peter Bird's tectonic plates = file</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>(peterbird.name/oldFTP/PB2002/). = </span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>The -Sf section headers are meant to create the = various symbols for = each</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>type of plate boundary. = </span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>The command is meant to = be:</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>psxy -J -R PB2002_boundaries.gmt -W0.5p,red -O = -Sf0.25/3p = -Gred</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>-Ba30:."Bird's_Plate_Boundaries" >> = out.ps</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>But all I get = is:</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>psxy: Warning: # not a valid number and may not be = decoded = properly.</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>psxy: Mismatch between actual (2) and expected (3) = fields near line = 22</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>Here is a snippet of the relevant bit of the file = (with line = numbers)</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>18: = #</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>19: = #</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>------------------------------------------------------= ----------------------</span><br></blockquote></blockquote></blockquote><b= lockquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>#</span><br></blockquote></blockquote></blockquote><bl= ockquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>20: > AF-AN Mueller et al. [1987] = </span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>21: > = -Sf0.45/3p</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>22: -0.4379 = -54.8518</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>It appears to be recognising segment headers OK. = gmtdefaults = shows:</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>IO_SEGMENT_MARKER = &n= bsp; =3D = ></span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>What else is it = expecting?</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>I'm using = 5.1.0</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>RussC</span><br></blockquote></blockquote></blockquote= ><blockquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote></blockquote><blo= ckquote type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>Mailing list for GMT discussions of all kinds. = If you are not sure you have found a bug, discuss it here = first.</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>To= formally report bugs or request features, please register and add New = Issue on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a></span><br><= /blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote type=3D"cite"><span>To= unsubscribe, send the message "signoff gmt-help" to <a = href=3D"mailto:[email protected]">[email protected]</a></s= pan><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>Note: gmt-help will become obsolete on Sept 1, 2014 = - please use forum on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a> = instead.</span><br></blockquote></blockquote></blockquote><blockquote = type=3D"cite"><blockquote = type=3D"cite"><span></span><br></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><span>Mailing list for GMT = discussions of all kinds. If you are not sure you have found a = bug, discuss it here = first.</span><br></blockquote></blockquote><blockquote = type=3D"cite"><blockquote type=3D"cite"><span>To formally report bugs or = request features, please register and add New Issue on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a></span><br><= /blockquote></blockquote><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>To unsubscribe, send the message "signoff gmt-help" = to <a = href=3D"mailto:[email protected]">[email protected]</a></s= pan><br></blockquote></blockquote><blockquote type=3D"cite"><blockquote = type=3D"cite"><span>Note: gmt-help will become obsolete on Sept 1, 2014 = - please use forum on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a> = instead.</span><br></blockquote></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span></span><br></blockquote><blockquote = type=3D"cite"><span>Mailing list for GMT discussions of all kinds. = If you are not sure you have found a bug, discuss it here = first.</span><br></blockquote><blockquote type=3D"cite"><span>To = formally report bugs or request features, please register and add New = Issue on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a></span><br><= /blockquote><blockquote type=3D"cite"><span>To unsubscribe, send the = message "signoff gmt-help" to <a = href=3D"mailto:[email protected]">[email protected]</a></s= pan><br></blockquote><blockquote type=3D"cite"><span>Note: gmt-help will = become obsolete on Sept 1, 2014 - please use forum on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a> = instead.</span><br></blockquote><span></span><br><span>Mailing list for = GMT discussions of all kinds. If you are not sure you have found a = bug, discuss it here first.</span><br><span>To formally report bugs or = request features, please register and add New Issue on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a></span><br><= span>To unsubscribe, send the message "signoff gmt-help" to <a = href=3D"mailto:[email protected]">[email protected]</a></s= pan><br><span>Note: gmt-help will become obsolete on Sept 1, 2014 - = please use forum on <a = href=3D"http://gmt.soest.hawaii.edu/">gmt.soest.hawaii.edu</a> = instead.</span><br></blockquote></div>Mailing list for GMT discussions = of all kinds. If you are not sure you have found a bug, discuss it here = first. To formally report bugs or request features, please register and add New = Issue on <a href=3D"http://gmt.soest.hawaii.edu">gmt.soest.hawaii.edu</a> To unsubscribe, send the message "signoff gmt-help" to <a = href=3D"mailto:[email protected]">[email protected]</a> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum = on <a href=3D"http://gmt.soest.hawaii.edu">gmt.soest.hawaii.edu</a> = instead. </blockquote></div><br></div></body></html>= Mailing list for GMT discussions of all kinds. If you are not sure you have found a bug, discuss it here first. To formally report bugs or request features, please register and add New Issue on gmt.soest.hawaii.edu To unsubscribe, send the message "signoff gmt-help" to <a href=3D"mailto:[email protected]">[email protected]</a> Note: gmt-help will become obsolete on Sept 1, 2014 - please use forum on gmt.soest.hawaii.edu instead. --Apple-Mail=_1A71CF3B-3813-49AE-9B8A-1094BDEB88DE--