station data bar graphs

Davide Sacchetti davide.sacchetti at ARPAL.ORG
Fri Sep 22 04:39:44 EDT 2006


grads station data graphs may be plotted ONLY by lines
then solutions are:
1) convert to grid data
2) see http://www.iges.org/grads/gadoc/gradfuncs2g1d.html

Bye bye
Davide


On Thu, 2006-09-21 at 19:24 +0200, Jeremy Duensing wrote:
> I've been trying to plot GrADS bar graphs from station data with no
> success.    GrADS always plots a line graph.  As an example, I've taken
> the CSV data below:
>
> Date,Station,Latitude,Longitude,Err
> 2006-09-01 00:00:00.000,KMSP ,44.880277,-93.216666,1.0
> 2006-09-02 00:00:00.000,KMSP ,44.880277,-93.216666,1.5
> 2006-09-03 00:00:00.000,KMSP ,44.880277,-93.216666,2.8
> 2006-09-04 00:00:00.000,KMSP ,44.880277,-93.216666,1.8
> 2006-09-05 00:00:00.000,KMSP ,44.880277,-93.216666,1.5
> 2006-09-06 00:00:00.000,KMSP ,44.880277,-93.216666,1.0
> 2006-09-07 00:00:00.000,KMSP ,44.880277,-93.216666,1.5
>
> ...converted it into a GrADS .dat file, loaded it into GrADS with
> successfull results:
>
>   Name of binary data set: /data/metgribs/kmsptest.dat
>   Number of times in the data set: 7
>   Number of surface variables: 1
>   Number of level dependent variables: 0
>
> Starting scan of station data binary file.
> Binary data file open: /data/metgribs/kmsptest.dat
> Processing time = 1
>      Time = 1 has stn count = 1
> Processing time = 2
>      Time = 2 has stn count = 1
> Processing time = 3
>      Time = 3 has stn count = 1
> Processing time = 4
>      Time = 4 has stn count = 1
> Processing time = 5
>      Time = 5 has stn count = 1
> Processing time = 6
>      Time = 6 has stn count = 1
> Processing time = 7
>      Time = 7 has stn count = 1
>   Max reports per time:  1 reports at t = 1
>   Max data elements in largest report: 1
>
> Version 2 Station map file created: /home/grads/data/index/kmsptest.map
>
> stnmap: WARNING!!  This stnmap file can only be accessed by GrADS Version
> 1.9b4
> stnmap: WARNING!!  However, GrADS Version 1.9b4 can read both versions
>
> stnmap: COMMENT  -- use the -1 command line option to create a map for
> older GrADS versions
>
>
>
> ...and executed the following commands:
>
>
>
> 'set lat 44.880277'
> 'set lon -93.216666'
> 'set lev 1000'
> 'set t 1 7'
> 'set gxout bar'
> 'd mxahe'
>
>
>
> ...and GrADS always gives a line graph no matter what I try.  Below is
> my .ctl file as well:
>
>
>
> dset /data/metgribs/kmsptest.dat
> dtype station
> stnmap /home/grads/data/index/kmsptest.map
> undef -99
> *
> *
> *
> title Graph Test
> tdef 7 linear 1SEP06 1dy
> vars 1
> mxahe      0 99 Avg Hrly Err [F]
> endvars
>
>
>
>
>
> Any ideas as to why this would always be plotted as a line graph?
>
> Thanks,
>
> Jeremy
--
Sacchetti Davide
ARPAL UO3 Centro Meteo Idrologico Regione Liguria - Dir. Scientifica
V.le Brigare Partigiane 2 16121 Genova (I)
tel: +39 010 6437535
mail: davide.sacchetti at arpal.org   web: www.meteoliguria.it



More information about the gradsusr mailing list