Re: What's wrong with my code ? running without error no output - might be bug

Joaquim Luis <[email protected]> Wed, 28 May 2014 18:00:48 +0100
Newsgroups gmane.comp.gis.gmt.user
Message-ID <[email protected]>
On 28-05-2014 17:36, Peter wrote:
> Thanks Guru, for reply, but the same piece of command works well for 
> test2 second one did you notice ?

So, you are trying to plot lines but where no line has more than ONE 
point -- Case 1 --- (the * are converted to NaNs ans used as line 
interrupts)
No wonder that nothing shows up

>
>
>
>
> On Wed, May 28, 2014 at 10:01 PM, Paul Wessel <[email protected] 
> <mailto:[email protected]>> wrote:
>
>     You use -M* but the * is not used as a segment marker. Instead it
>     appears as a (bad) y coordinate that is converted to a NaN.
>
>     Sent from my iPad
>
>     On May 28, 2014, at 3:11 AM, Peter <[email protected]
>     <mailto:[email protected]>> wrote:
>
>>     This is my code, same code works with more data, but if I use 
>>     few points does not work why ? Is it bug or I am doing something
>>     wrong please let me know ?
>>
>>     #!/bin/bash
>>
>>     # GMT 4.5.9 [64-bit] - RHEL
>>
>>     gmtset TIME_FORMAT_PRIMARY abbreviated
>>     gmtset TIME_INTERVAL_FRACTION 0.1
>>     gmtset INPUT_DATE_FORMAT dd-o-yyyy
>>     gmtset PLOT_DATE_FORMAT o
>>
>>     # No output from this data
>>     psxy -R2007-10-01T/2008-03-31T/0/2 -JX12cT/7c -Bsa0/a0S
>>     -Bpa1Of8/a0.2f0.1SW -W8,0/0/255 -M* << EOF >test.ps <http://test.ps>
>>     15-Dec-2007    0.564
>>     16-Dec-2007    *
>>     17-Dec-2007    *
>>     18-Dec-2007    *
>>     19-Dec-2007    *
>>     20-Dec-2007    *
>>     21-Dec-2007    *
>>     22-Dec-2007    *
>>     23-Dec-2007    *
>>     24-Dec-2007    *
>>     25-Dec-2007    *
>>     26-Dec-2007    *
>>     27-Dec-2007    *
>>     28-Dec-2007    *
>>     29-Dec-2007    *
>>     30-Dec-2007    *
>>     31-Dec-2007    *
>>     01-Jan-2008    *
>>     02-Jan-2008    *
>>     03-Jan-2008    *
>>     04-Jan-2008    *
>>     05-Jan-2008    *
>>     06-Jan-2008    *
>>     07-Jan-2008    *
>>     08-Jan-2008    *
>>     09-Jan-2008    *
>>     10-Jan-2008    *
>>     11-Jan-2008    *
>>     12-Jan-2008    *
>>     13-Jan-2008    *
>>     14-Jan-2008    *
>>     15-Jan-2008    0.839
>>     16-Jan-2008    *
>>     17-Jan-2008    *
>>     18-Jan-2008    *
>>     19-Jan-2008    *
>>     20-Jan-2008    *
>>     21-Jan-2008    *
>>     22-Jan-2008    *
>>     23-Jan-2008    *
>>     24-Jan-2008    *
>>     25-Jan-2008    *
>>     26-Jan-2008    *
>>     27-Jan-2008    *
>>     28-Jan-2008    *
>>     29-Jan-2008    *
>>     30-Jan-2008    *
>>     31-Jan-2008    *
>>     01-Feb-2008    *
>>     02-Feb-2008    *
>>     03-Feb-2008    *
>>     04-Feb-2008    *
>>     05-Feb-2008    *
>>     06-Feb-2008    *
>>     07-Feb-2008    *
>>     08-Feb-2008    *
>>     09-Feb-2008    *
>>     10-Feb-2008    *
>>     11-Feb-2008    *
>>     12-Feb-2008    *
>>     13-Feb-2008    *
>>     14-Feb-2008    *
>>     15-Feb-2008    0.589
>>     16-Feb-2008    *
>>     17-Feb-2008    *
>>     18-Feb-2008    *
>>     19-Feb-2008    *
>>     20-Feb-2008    *
>>     21-Feb-2008    *
>>     22-Feb-2008    *
>>     23-Feb-2008    *
>>     24-Feb-2008    *
>>     25-Feb-2008    *
>>     26-Feb-2008    *
>>     27-Feb-2008    *
>>     28-Feb-2008    *
>>     29-Feb-2008    *
>>     01-Mar-2008    *
>>     02-Mar-2008    *
>>     03-Mar-2008    *
>>     04-Mar-2008    *
>>     05-Mar-2008    *
>>     06-Mar-2008    *
>>     07-Mar-2008    *
>>     08-Mar-2008    *
>>     09-Mar-2008    *
>>     10-Mar-2008    *
>>     11-Mar-2008    *
>>     12-Mar-2008    *
>>     13-Mar-2008    *
>>     14-Mar-2008    *
>>     15-Mar-2008    0.469
>>     EOF
>>
>>
>>     # Getting output from this
>>     psxy -R2007-10-01T/2008-03-31T/0/2 -JX12cT/7c -Bsa0/a0S
>>     -Bpa1Of8/a0.2f0.1SW -W8,0/0/255 -M* << EOF >test2.ps
>>     <http://test2.ps>
>>     22-Dec-2007    0.35
>>     23-Dec-2007    0.541
>>     24-Dec-2007    0.446
>>     25-Dec-2007    0.513
>>     26-Dec-2007    0.3
>>     27-Dec-2007    *
>>     28-Dec-2007    *
>>     29-Dec-2007    0.48
>>     30-Dec-2007    0.81
>>     31-Dec-2007    1.07
>>     01-Jan-2008    0.9
>>     02-Jan-2008    1.44
>>     03-Jan-2008    1.27
>>     04-Jan-2008    1.53
>>     05-Jan-2008    1.11
>>     06-Jan-2008    1.31
>>     07-Jan-2008    1.15
>>     08-Jan-2008    *
>>     09-Jan-2008    *
>>     10-Jan-2008    0.82
>>     11-Jan-2008    0.85
>>     12-Jan-2008    0.74
>>     13-Jan-2008    0.73
>>     14-Jan-2008    0.61
>>     15-Jan-2008    0.61
>>     16-Jan-2008    0.56
>>     17-Jan-2008    *
>>     18-Jan-2008    0.61
>>     19-Jan-2008    0.452
>>     20-Jan-2008    *
>>     21-Jan-2008    *
>>     22-Jan-2008    0.49
>>     23-Jan-2008    0.75
>>     24-Jan-2008    *
>>     25-Jan-2008    *
>>     26-Jan-2008    *
>>     27-Jan-2008    *
>>     28-Jan-2008    *
>>     29-Jan-2008    0.63
>>     30-Jan-2008    0.643
>>     31-Jan-2008    0.42
>>     01-Feb-2008    0.59
>>     02-Feb-2008    0.69
>>     03-Feb-2008    0.77
>>     04-Feb-2008    1.07
>>     05-Feb-2008    0.9
>>     06-Feb-2008    0.64
>>     07-Feb-2008    *
>>     08-Feb-2008    *
>>     09-Feb-2008    *
>>     10-Feb-2008    *
>>     11-Feb-2008    *
>>     12-Feb-2008    *
>>     13-Feb-2008    *
>>     14-Feb-2008    *
>>     15-Feb-2008    *
>>     16-Feb-2008    0.46
>>     17-Feb-2008    0.336
>>     18-Feb-2008    *
>>     19-Feb-2008    *
>>     20-Feb-2008    *
>>     21-Feb-2008    *
>>     22-Feb-2008    *
>>     23-Feb-2008    0.396
>>     24-Feb-2008    0.323
>>     25-Feb-2008    *
>>     26-Feb-2008    0.308
>>     27-Feb-2008    *
>>     28-Feb-2008    *
>>     29-Feb-2008    *
>>     01-Mar-2008    *
>>     02-Mar-2008    *
>>     03-Mar-2008    0.42
>>     04-Mar-2008    0.48
>>     05-Mar-2008    0.577
>>     06-Mar-2008    *
>>     07-Mar-2008    *
>>     08-Mar-2008    0.4
>>     EOF
>>
>>
>>
>>     Please help me....
>>
>>
>>     -Peter
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>     <test.ps <http://test.ps>>
>>     <test2.ps <http://test2.ps>>
>     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 <http://gmt.soest.hawaii.edu> To unsubscribe,
>     send the message "signoff gmt-help" to [email protected]
>     <mailto:[email protected]> Note: gmt-help will become
>     obsolete on Sept 1, 2014 - please use forum on
>     gmt.soest.hawaii.edu <http://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.