[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GEMPAK #MIA-749109]: 20000626: PUTTING LABELS ON AXES IN GEMPAK



> Hello Steve,
> 
> I'm trying to put grid lines in SFGRAM graphs using the following but I
> don't succeed:
> sfgram << EOF
> SFFILE   = metar
> DATTIM   = ${DDA}/0000-$DD/2359
> STATION  = ${STATIONS[$cont]}
> TRACE1   = TMPC;DWPC:3/2;3
> TRACE2   = ALTM/4!RELH/18
> TRACE3   = GUST;SKNT;DARR:0.5:1:111:0.5/29;23;6
> TRACE4   = SKYC;TCLO;CLDS/4;30;7
> TRACE5   = VSBK;;WSYM:1:401/6;;7
> NTRACE   = 5
> TAXIS    = $4/0000-$DD/2359-3;2;4;1
> BORDER   = 31
> MARKER   = 28/15/5/5/hw
> TITLE    = 31/+1/${NOMES[$cont]}
> CLEAR    = y
> DEVICE   = gf|${STATIONS[$cont]}.gif|895;716
> PANEL    =
> TEXT     = 1/2/1/sw
> l
> r
> 
> e
> EOF
> 
> The graph is perfect, but I can't see the grid lines
> ( http://www.cptec.inpe.br/~metop/meteograma/SBAR.gif )

Giovanni,

The horizontal grid lines require the "WITNES" values to be defined
in the TRACEn parameters, eg for temperature, I can set:
TRACE1   = TMPC;DWPC:3/2;3/-20-10-5/-15;-10;-5;0;5;10

Unfortunately, the TAXIS grid frequency for vertical lines is not defined,
so you aren't able to produce vertical lines at the time frequencies.

Steve Chiswell
Unidata User Support



> 
> 
> You have any idea on what is wrong?
> 
> Thanks,
> 
> Giovanni
> 
> On Fri, 2007-03-02 at 12:55 -0700, Unidata GEMPAK Support wrote:
> > Giovanni,
> >
> > The program GPANOT has the capability of putting text at user defined 
> > locations on a plot
> > with rotation:
> >
> > INFO = 
> > SIZE/FONT/WIDTH/BORDER/RELROTATION/JUSTIFICATION/HW-SW/JUSTIFICATION/ANGLE/TEXT
> > eg
> > shape = text
> > loci = .5;.5
> > info = 3/21/3/1/S//sw/C/90/test string
> >
> > this will write the string "test string" at position .5;.5 screen relative,
> > 90 degree ANGLE relative to the screen (RELROTATION is 'S').
> >
> > Note that the first 7 fields match the "phelp text" settings, however
> > the documentation of INFO doen't mention that
> > the eighth ("text_string" portion can have 3 parts to it each separated by 
> > a '/').
> >
> > The first 7 fields are parsed just as "phelp text" will. The fields 8 
> > through 10 are introduced in the
> > gpanot program, so it is important that you have all the fields
> > and use empty '//' fields where necessary to maintain the number of fields. 
> > If you only
> > have 8 fields, then the text string has no rotation ANGLE.
> >
> > Use the "sw" font to be able to rotate the text. HW fonts cannot be rotated.
> >
> > Steve Chiswell
> > Unidata User Support
> >
> >
> > > Hello Steve,
> > >
> > > How are you doing? I'm fine.
> > > I'm trying to add text strings (labels) to my SFGRAM plot and I found
> > > this email list answer below. Is there any easier way to do it?
> > > If not, could you send me gptext.tar.Z ?
> > >
> > > Thank you,  Giovanni
> > >
> > >
> > > ############################################
> > > Subject: 20000626: PUTTING LABELS ON AXES IN GEMPAKI posted this in
> > > ~gbuddy/nawips-5.4/contrib/gptext.tar.Z
> > >
> > > Download into $NAWIPS and unpack/install with:
> > >
> > > zcat gptext.tar.Z | tar xvf -
> > > cd gempak5.4/source/programs/gp/gptext
> > > make
> > > make install
> > > make clean
> > >
> > > Once the program is installed, you can write text (and rotate) such as:
> > > TITLE    = 5//Height (m)
> > > TEXT     = 1/21/1/sw
> > > POSITION = .03;.45;90
> > > DEVICE   = XW
> > > COORD    = n
> > > gptext->r
> > > ###################################3
> > >
> > >
> > >
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: MIA-749109
> > Department: Support GEMPAK
> > Priority: Normal
> > Status: Closed
> >
> 
> 


Ticket Details
===================
Ticket ID: MIA-749109
Department: Support GEMPAK
Priority: High
Status: Closed