[Thread Prev][Thread Next][Index]

Re: [ferret_users] Title label variable help



Thank you for your help on the GIF label issue I was
able to find the correct location and display the new
labels. 

Now I am having some problems when writing my own
header. Currently I need to be able to create ASCII
text, COMMA delimited text and tab delimited text.

For the comma and tab delimited text I use list/nohead
as advised and then display the my own start and end
date labels. The problem I have is now I need to
recreate the whole header myself because the only item
I really wanted to keep from displaying was the TIME
header. 

Here is an example of the original header
             VARIABLE : Average Gradient (Deg. C/100
Km)
             DATA SET : SST 100KM GLOBAL
             FILENAME : MY_Descriptor.des
             FILEPATH : /HTML/DocRoot/www/product/6/
             BAD FLAG :   999.9000    
             SUBSET   : 361 by 141 points
(LONGITUDE-LATITUDE)
             TIME     : 16-MAY-2005 00:00


This is how I want the new header

VARIABLE : Average Gradient (Deg. C/100 Km)
             DATA SET : SST 100KM GLOBAL
             FILENAME : MY_Descriptor.des
             FILEPATH : /HTML/DocRoot/www/product/6/
             BAD FLAG :   999.9000    
             SUBSET   : 361 by 141 points
(LONGITUDE-LATITUDE)
             START DATE : 16-MAY-2005 00:00
             END DATE   : 17-MAY-2005 00:00

I was able to recreate most of the header by using
return values such as title,dset ,dsetpath, bad, and
units. I am having trouble creating the exact output
for subset. Also I haven't been able to output the
information for DATA SET. I thought that the return
value of DSETTITLE would have this information but it
returns an error (I am using Ferret v5.41 for AIX ).

Another issue I have with the comma and tab delimited
files is when multiple dates are used the following is
displayed for each date
 ---- L:1 T:   16-MAY-2005 00:00
Is there any way to modify that header?

The final issue is concerned with creating ASCII files
orignal go file used the
HEADING=ENHANCED/FORMAT=(5G12.5) which displays the
following:
VARIABLE : Average Gradient (Deg. C/100 Km)
             DATA SET : SST 100KM GLOBAL
             FILENAME : MY_Descriptor.des
             FILEPATH : /HTML/DocRoot/www/product/9/
             LONGITUDE: 154W to 150W
             LATITUDE : 63S to 42N
             TIME     : 16-MAY-2005 00:00
             GEOMETRY: XY 
             SIZE:  5  106  
             FORTRAN FORMAT: (5G12.5)
             MISSING VALUES FLAG:   999.9000

X COORDINATES: degrees_east
 206.00      207.00  . . . .
Y COORDINATES: degrees_north
 -63.000     -62.000 . . . .
DATA:
  .10000      .10000      .20000   . . .

When I use the NOHEAD to strip the header and create
my own header it removes the X COORDINATES, Y
COORDINATES sections and only displays the data
without the DATA: header. Is there any way that I can
recreate these sections? Thank you for your time and
all of the help.

Selina


 

--- Jaison Kurian <jaison@caos.iisc.ernet.in> wrote:

> Hi Selina,
>               Your question was like :
> 
>       ...So at the top of the gif or ASCII file I
> would have
>       something like this
> 
>       START DATE: 01/01/01
>       END DATE: 01/03/01
>       DATE MEANING: start and end date of data
> collection.
> 
>   and in my reply i explained how to do this (may be
> in a
> slightly different format)...with strings as given
> below ?
> 
>       START DATE : 16-JAN-1982 20:00
>       END   DATE : 17-DEC-1992 03:30
>       DATE MEANING: start and end date of data
> collection
> 
>   this is the easy way to make time strings in
> Ferret, do
> you need exactly in the format "START DATE:
> 01/01/01"
> instead of the normal Ferret style
> "START DATE : 16-JAN-1982 20:00"  ??
> 
>   In this case you need to write few more lines, but
> it is
> possible.
> 
>   In your go file, you have to give proper X and Y
> locations
> for the "LABEL" command (currently it is same values
> as the
> example file...please change it and try again !!!):
> 
>      label `($PPL$XMIN1)*1.3`,12.5,-1,0,0.13 START
> DATE : `ts`
> 
>   Here each time you have to tune the first and
> second (x & y
> locations) arguments to label command to get label
> at proper
> place (fixed values, even with the qualifier /NOUSER
> is not
> appropriate since the flexibility for using a
> defined viewport
> will be lost then). Use PPL command
> 
>                yes? ppl list labels
> 
>    to know the co-ordinates of default plot (should
> be issued
> before "go unlabel 4" and the FILL or PLOT command
> should not
> contain "/NOLAB" qualifier). You can use these
> listed values
> to get the desired label at the default position of
> an
> automatic label.
> 
>   In your go file, you have 3 SHADE commands, the
> second
> one doesnot have the /OVER qualifier and the
> labelling is
> done after the first plot .....so you will loose
> that label
> automatically.....Hope now you got the problems with
> your
> go file.
> 
> With Regards
> 
> Jaison
> 
> On Tue, 5 Jul 2005, Selina Satterfield wrote:
> 
> > I was able to add the label to the gif file using
> the
> > information you supplied to my code I had it in
> the
> > incorrect place,however, I still have the question
> > about only removing the TIME header and adding my
> own
> > though Thank you for your help.
> >
> > Selina
> >
> >
> >
> > --- Selina Satterfield
> <satterfields2000@yahoo.com>
> > wrote:
> >
> >> Hello Jaison,
> >>
> >> I'm having a little difficulty creating my
> labels. I
> >> want to be able to use the variable that is
> passed
> >> to
> >> the jnl file for setting the start and end time
> >> labels
> >> but I'm not sure of the syntax for example where
> $2
> >> is
> >> the variable that I want to obtain the start time
> >> from:
> >> let ts = "`$2,r=tstart`"   ! starting time
> >>
> >> Also the new labels aren't displaying here is my
> >> code
> >>
> >> ! Parameter Order           1         2          
> 3
> >>
> >> ! Usage: vis_draw_rect [monthly] [variable]
> >> [landmap]
> >>
> >> !1 1(monthly data), 0(nonmonthly data)
> >> !2 variable
> >> !3 1(draw land map), 0(no land map)
> >>
> >> ! define data viewport
> >> define view/xlimits=0:1/ylimits=0.2:1 dataview
> >> set view dataview
> >>
> >> ! obtain start and end time of the data so can
> >> display
> >> on the GIF
> >> let ts = "Temp Text until get correct syntax"
> >>
> >> if $1 then  ! ver5.0 not allow brackets
> >> 	SET MODE CALENDAR:MONTHS
> >> endif
> >>
> >> SHADE/SET/LEVELS=1/nokey/lev=(-99999) $2
> >>
> >> !Remove Time from graph
> >> go unlabel 4
> >> PPL SHADE
> >>
> >> !Add Start Time label
> >> label `($PPL$XMIN1)*1.3`,12.5,-1,0,0.13 START
> DATE :
> >> `ts`
> >>
> >> SHADE/LEVELS=1/nolab/nokey/pal=black missing($2,
> 0)
> >> SHADE/LEVELS=23/nolab/pal=default/key/over $2
> >>
> >>
> >> ! outline land map for PATHFINDER
> >> if $3 then
> >>
> >> 	go land black overlay
> >> endif
> >>
> >> Another question I had is for creating ASCII,
> TAB,
> >> and
> >> COMMA text files. The out put for TAB looks like
> >> this:
> >>              VARIABLE : Analysis Temperature
> (Deg.
> >> C)
> >>              DATA SET : SST 100KM GLOBAL
> >>              FILENAME : MY_Descriptor.des
> >>              FILEPATH :
> /DocRoot/User/www/product/
> >>              BAD FLAG :   999.9000
> >>              SUBSET   : 361 by 141 points
> >> (LONGITUDE-LATITUDE)
> >>              TIME     : 16-MAY-2005 00:00
> >>
> >> coordinates	0E  	1E  	2E  	3E  	4E    . . . .
> >> 70S	999.9	999.9	999.9	999.9	999.9	999.9 . . . .
> >> 69S	-1.7	-1.7	-1.7	-1.7	-1.7	-1.1  . . . .
> >> 68S	-1.7	-1.7	-1.7	-1.7	-1.7	-1.7  . . . .
> >> . . . .
> >>
> >>             VARIABLE : Analysis Temperature (Deg.
> C)
> >>              DATA SET : SST 100KM GLOBAL
> >>              FILENAME : MY_Descriptor.des
> >>              FILEPATH :
> >> /DocRoot/VisUser/www/product/
> >>              BAD FLAG :   999.9000
> >>              SUBSET   : 361 by 141 by 2 points
> >> (LONGITUDE-LATITUDE-TIME)
> >>
> >> coordinates	0E  	1E  	2E  	3E  	4E    . . . .
> >> ---- L:1 T:   16-MAY-2005 00:00
> >> 70S	999.9	999.9	999.9	999.9	999.9	999.9 . . . .
> >> 69S	-1.7	-1.7	-1.7	-1.7	-1.7	-1.1  . . . .
> >> 68S	-1.7	-1.7	-1.7	-1.7	-1.7	-1.7  . . . .
> >> . . . .
> >> ---- L:2 T:   17-MAY-2005 00:00
> 
=== message truncated ===



		
____________________________________________________
Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement