peter Smith | 24 Sep 20:20 2007
Picon

psxy and timeseries

To whom it may concern,
 I'm struggling with getting the psxy option to work with time data.
 I'm running 4.2.0

I have an input file mean-mon that contains

2000-02-00 5000
2004-03-00 5100
2004-04-00 6000
2004-05-00 7000
2005-10-00 10000
2005-11-00 15000
etc

I have the following script
gmtset INPUT_DATE_FORMAT yyyy-mm-dd
psxy mean-mon -R2000-1-1T/2004-1-1T/3000/30000 -Ss0.1 -B50/5000 -JX12T/6 -K > out.ps


I would like the plot to show either yyyy-mm or yyy-jjj on the x-axis
 I cannot seem to figure out  -B with time data
 
GMT SYNTAX ERROR:  time steps in days of the month must be <= 31


If I enter 30 I get a black blur as an x-axis as well as the following and no actual data plotted

psxy: Encountered first invalid record near/at line # 1
psxy: Likely causes:
psxy: (1) Invalid x and/or y values, i.e. NaNs or garbage in text strings.
psxy: (2) Incorrect data type assumed if -J, -f are not set or set incorrectly.
psxy: (3) The -: switch is implied but not set.
psxy: (4) Input file in multiple segment format but the -M switch is not set.

I have no blank lines in my input files
 I'm stumped. Any help on the time input would be great.
 Thanks
 Paul


To unsubscribe, send the message "signoff gmt-help" to listserv <at> hawaii.edu

Karin Meier-Fleischer | 25 Sep 08:01 2007
Picon

Re: psxy and timeseries

Hi Paul,

try the following:

gmtset PLOT_DATE_FORMAT yyyy-mm
psxy mean-mon -R2000-1-1T/2004-1-1T/3000/30000 -Ss0.1 -Bpa3O/5000WSen \
-JX12T/6 -K >> out.ps

This will annotate every third month in date format yyyy-mm.

Ciao, Karin
---------------------------------\\---------------------------------------
Karin Meier-Fleischer             \\ Max-Planck-Institut fuer Meteorologie
Phone: +49-40-41173-431            \\   Abteilung Modelle & Daten
FAX:   +49-40-41173-476             \\    Bundesstr. 53
Email: karin.meier-fleischer <at> zmaw.de \\   D-20146 Hamburg
http://www.mad.zmaw.de/               \\  Germany
---------------------------------------\\---------------------------------

On Mon, 24 Sep 2007, peter Smith wrote:

> To whom it may concern,
> I'm struggling with getting the psxy option to work with time data.
> I'm running 4.2.0
>
> I have an input file mean-mon that contains
>
> 2000-02-00 5000
> 2004-03-00 5100
> 2004-04-00 6000
> 2004-05-00 7000
> 2005-10-00 10000
> 2005-11-00 15000
> etc
>
> I have the following script
> gmtset INPUT_DATE_FORMAT yyyy-mm-dd
> psxy mean-mon -R2000-1-1T/2004-1-1T/3000/30000 -Ss0.1 -B50/5000 -JX12T/6 -K
>> out.ps
>
>
> I would like the plot to show either yyyy-mm or yyy-jjj on the x-axis
> I cannot seem to figure out  -B with time data
>
> GMT SYNTAX ERROR:  time steps in days of the month must be <= 31
>
>
> If I enter 30 I get a black blur as an x-axis as well as the following and
> no actual data plotted
>
> psxy: Encountered first invalid record near/at line # 1
> psxy: Likely causes:
> psxy: (1) Invalid x and/or y values, i.e. NaNs or garbage in text strings.
> psxy: (2) Incorrect data type assumed if -J, -f are not set or set
> incorrectly.
> psxy: (3) The -: switch is implied but not set.
> psxy: (4) Input file in multiple segment format but the -M switch is not
> set.
>
> I have no blank lines in my input files
> I'm stumped. Any help on the time input would be great.
> Thanks
> Paul
>
> To unsubscribe, send the message "signoff gmt-help" to listserv <at> hawaii.edu
>

To unsubscribe, send the message "signoff gmt-help" to listserv <at> hawaii.edu


Gmane