[Thread Prev][Thread Next][Index]

Re: WHILE loop



Hello Rong Xinyao,
	I think the "ppl while" command may not be a promising method for
doing repetititive tasks within Ferret.  As you may know Plotplus
was/is a stand-alone plotting package before some, but not all, of
its capabilities were incorporated into Ferret.
	In Plotplus there are "scripts", called .ppc files rather
than .jnl files, but to invoke them needs the Plotplus @ command
which is not part of Ferret. The result, I think, is that you have to
issue ppl commands one at a time and the syntax of the "while ... endw"
gets lost.
	I suggest you use ferret's "repeat" command in some manner, e.g.

repeat/i=1:5 (plot/i=1:10 1/i ; label/nouser 4 3 0 0 0.2 @sr`i` ; message)

to achieve your goal. Note that in this example "i" is used as the repeat
index although it is also employed within the repeated command. Normally
though I tend to use an unneeded axis as the repeat index.

I hope this is off some use.  It is possible that wiser (though probably
not older) heads will come up with a way to use "while ... endw" in
which case I'll be glad to stand corrected.

Regards,
Mick

|____Mick.Spillane@noaa.gov____|
|__Room 2070 Bldg#3 NOAA/PMEL__|
|____Phone_:_(206)526-6780_____|




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement