Re: psxy and segment headers

Kristof Koch <[email protected]> Thu, 31 Jul 2014 22:00:48 +0200
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
--Apple-Mail=_14D37B06-EBEA-4067-9C57-4601BF0B4F10
Content-Type: multipart/mixed;
	boundary="Apple-Mail=_EA62EA03-189A-42C0-94D7-0A3C28D836F7"


--Apple-Mail=_EA62EA03-189A-42C0-94D7-0A3C28D836F7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1

P=E5l,

I made a test script attached below. I was unable to cut down the data =
set adequately. Please see separate mail with link to it (proprietary =
data; not to be shared with the list).

All the best,
Kristof


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=_EA62EA03-189A-42C0-94D7-0A3C28D836F7
Content-Disposition: attachment;
	filename=test_fir_lines.sh
Content-Type: application/octet-stream;
	name="test_fir_lines.sh"
Content-Transfer-Encoding: 7bit

#!/bin/bash

# Test case to show ghost horizontal lines plotted by psxy
# Tested under GMT Version 5.2.0_r13401 [64-bit]

FILE_NAME=test_fir_lines.ps

# Path to text file containing the data to be plotted
FIR_DATA=../../data/fir/FIRs_worldwide.txt

gmtset \
	PS_MEDIA A4 \
    MAP_ORIGIN_X 0.5c \
    MAP_ORIGIN_Y 0.5c \
    MAP_FRAME_TYPE plain \
	FONT_ANNOT_PRIMARY 7p,black \
    FONT_ANNOT_SECONDARY 6p,black \
    MAP_ANNOT_MIN_ANGLE 5 \
    MAP_ANNOT_OBLIQUE 34 \
    MAP_ANNOT_OFFSET_PRIMARY 1.8p \
    MAP_ANNOT_OFFSET_SECONDARY 1.8p \

psbasemap \
	-JL-73.5/-10.6/-14.16/-14.24/28.7c \
	-R-88.9/-14.1/-58.5993313003/6.9895410772r \
    -Bpa5f1g10 \
    -K \
    > $FILE_NAME

psxy $FIR_DATA \
	-J -R \
	-W0.05c,210/180/140 \
	-O \
	>> $FILE_NAME
--Apple-Mail=_EA62EA03-189A-42C0-94D7-0A3C28D836F7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=iso-8859-1



Am 31.07.2014 um 19:44 schrieb Paul Wessel <[email protected]>:

> I cannot reproduce those but of course I am just guessing that your -J =
is -JL ?  Please send a single psxy command that demonstrates the =
problem.
>=20
> -p
>=20
> On Jul 31, 2014, at 6:33 AM, Kristof Koch <[email protected]> wrote:
>=20
>> I'm experiencing something similar:
>>=20
>> When I plot a global dataset on a global (LON+/-180=B0) map, =
everything is fine. When I plot a regional map of the same dataset, =
strange horizontal lines appear.=20
>>=20
>> See http://kristofkoch.de/gmt/south_america_nw.png (397KB, =
proprietary information pixelated). I have no clue what causes the three =
horizontal lines running through the plot.The two vertical lines are my =
fault. Please ignore.=20
>>=20
>> GMT 5.2.0_r13401 [64-bit]
>>=20
>> Code snippet generating the brownish lines:
>>=20
>> psxy $FIR \
>> 	-R -J \
>> 	-W0.05c,$FIR_BOUND_COLOR \
>> 	-K -O \
>> 	>> $FILE
>>=20
>> $FIR =3D path to a textfile
>> -R =3D -88.9/-14.1/-58.5993313003/6.9895410772
>> -J =3D -73.5/-10.6/-14.16/-14.24/28.7c
>>=20
>> All the best,
>> Kristof
>>=20
>> Am 31.07.2014 um 16:51 schrieb Chenjian Fu <[email protected]>:
>>=20
>>> Thanks!
>>>=20
>>> If use a non-geographical projection, e.g. -JX, and a
>>> non-0/360-domain, e.g. -R-180/180/-90/90:
>>>=20
>>> gmt psxy -JX17c/8.5c -R-180/180/-90/90
>>> '/cygdrive/c/data/PB2002/PB2002_boundaries.gmt' -W0.5p,red =
-Sf0.25/3p
>>> -Gred -Ba30 > out.ps
>>>=20
>>> There are symbols being plotted across the entire longitudinal =
domain.
>>> See attached ps/pdf files.
>>>=20
>>> GMT5 r13399.
>>>=20
>>> -cj
>>>=20
>>> On Thu, Jul 31, 2014 at 4:11 AM, Christian Heine
>>> <[email protected]> wrote:
>>>> Paul,
>>>>=20
>>>> as usual - thanks for the quick fix!
>>>>=20
>>>> cj, thanks for pointing this out.
>>>>=20
>>>>=20
>>>> Greetings from the lowlands,
>>>> Christian
>>>>=20
>>>> On 31 Jul 2014, at 4:48 am, Paul Wessel <[email protected]> wrote:
>>>>=20
>>>>> Fixed in r13399
>>>>> -p
>>>>>=20
>>>>> On Jul 30, 2014, at 2:49 PM, Paul Wessel <[email protected]> =
wrote:
>>>>>=20
>>>>>> Oops, just noticed that - will have a look.
>>>>>> -p
>>>>>>=20
>>>>>> On Jul 30, 2014, at 2:17 PM, cj <[email protected]> wrote:
>>>>>>=20
>>>>>>> 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
>>>> [snip]
>>>>=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.
>>> <out.pdf><out.ps>
>>=20
>>=20
>> --
>> My PGP Public Key: http://kristofkoch.de/pgp/
>>=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.


--
My PGP Public Key: http://kristofkoch.de/pgp/


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=_EA62EA03-189A-42C0-94D7-0A3C28D836F7--

--Apple-Mail=_14D37B06-EBEA-4067-9C57-4601BF0B4F10
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJT2qBxAAoJEJ3YS27/3eKHcNsIAMZksuQLO97MJ0Krre60KYCJ
Tpe0/enF96CifvAwmuRLdvIDIRPqmzI3XdmceX6LbPAm/q+nYJ5yJ3xgC7k4WzJo
IFyZ7SinHUwE606dF/z9xPp7zODpaHHExN8qLCmqkXCxQkMIMPkgBJ1sPr9wJUuQ
enkclNC4CP22LhpXDY6VjFcJ5hajZrtn1HoJVpQnvZZFO6Kcj7Vf9B+ckcjzTJNe
CUlYhkAJX1tyjrfL6Pnw85UxclvsvzGSIpXbd42wPa39aySz8ploYnrxjMt9Sn2/
B6scU3mT/7Znk79NrPyXGCrdfK2KPheWoZvjDyXDdDj9xF1Y6dINGorWl/E0wP4=
=vp8+
-----END PGP SIGNATURE-----

--Apple-Mail=_14D37B06-EBEA-4067-9C57-4601BF0B4F10--