station data bar graphs

Jeremy Duensing jeremy.duensing at DTN.COM
Thu Sep 21 13:24:37 EDT 2006


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



More information about the gradsusr mailing list