[Thread Prev][Thread Next][Index]
Re: Title label variable help
Hi Selina,
Here is an example script using the monthly_navy_winds
dataset available with Ferret. Please find the explanations inside
the script. If you have any difficulties, let me know.
Hope this helps
With Regards
Jaison
!------------example.jnl---------------
\ cancel mode verify
set data monthly_navy_winds ! open dataset
sh da ! see the contents of the file
let ts = "`uwnd,r=tstart`" ! starting time
let te = "`uwnd,r=tend`" ! ending time
let txt= "DATE MEANING: start and end date of data collection" ! 51 chars
! description
plot/x=70/y=10/set uwnd ! plot
go remove_logo ! remove ferret logo
go unlabel 4 ; go unlabel 5 ; go unlabel 6 ! remove time/dset_name
ppl plot ! deliver the plot
! choose proper x and y values to place the labels
label `($PPL$XMIN1)*1.3`,12.5,-1,0,0.13 START DATE : `ts`
label `($PPL$XMIN1)*1.3`,12.0,-1,0,0.13 END DATE : `te`
label `($PPL$XMIN1)*1.3`,11.5,-1,0,0.13 `txt`
! to write this stuff to a text file
sp rm -f temp.txt ! to remove previous versions
let ts1 = STRCAT("START DATE : ","`ts`") ! assign a variable name for
let te1 = STRCAT("END DATE : ","`te`") ! the text in one line (30 chars)
list/file=temp.txt/nohead/format=(A30) ts1 ! format statemet
list/file=temp.txt/nohead/format=(A30)/append te1 ! is for a neat
list/file=temp.txt/nohead/format=(A51)/append txt ! appearance in the
list/x=70/y=10/file=temp.txt/append uwnd ! text file
! gif file
FRAME/FILE=temp.gif
!-------------------------end of example.jnl------------------------
On Thu, 24 Mar 2005, Selina Satterfield wrote:
> Hello everyone,
>
> I am using ferret to generate GIF, and ASCII files
> from existing netCDF files. I was wondering how to add
> information to the top of each of these files. For
> example I would like to display the start and end date
> of the file just as a reference and display the
> meanings behind the date. For example the start and
> end date of the data, or start and end time of the
> file creation etc.
> 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.
>
>
>
> I'm still pretty new at this stuff so I'm not sure if
> I'm using the correct terminology. Is there any way to
> have this set in a jnl file? Thank you for your time.
>
> Selina
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Small Business - Try our new resources site!
> http://smallbusiness.yahoo.com/resources/
>
--
___________________________________________________
Jaison Kurian
Centre for Atmospheric and Oceanic Sciences
Indian Institute of Science
B A N G A L O R E 560 012
Ph: +91-80-3942505
+91-80-3600450
Fax:+91-80-3600865
___________________________________________________
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement