[Thread Prev][Thread Next][Index]

Re: Symbol sync on a repeat cycle

Hi Paulo,
This behavior is fixed in version 5.33.  Here is the section from the
release notes on it.
http://ferret.pmel.noaa.gov/Ferret/Documentation/Release_Notes/v53.html#symbols in repeat loops


"Paulo B. Oliveira" wrote:

Hi all,

I'm trying to plot dates over a station map using a repeat loop cycle,
apparently the symbol definition is out of sync. The dates are extracted

from the time axis.

For example, running the script test_sym.jnl:
def ax/t="1-jan-2002":"3-jan-2002"/np=5 tt

let var = 1+l+0*t[gt=tt]

plot/vs/hlim=1:5/vlim=1:5/nolab var,var

repeat/l=1:5 ( def sym dd `var,return=tstart,pre=3`; show sym dd;
plot/vs/ov/hlim=1:5/vlim=1:5/nolab var,var; label `var`,`var`,0,0,0.1
@as ($dd) )

the first run plots no labels, and on the second run the labels are
to the last definition of previous run: 03-JAN-2002.

Is there a command to update the symbol definition at each loop cycle ?

And, another question: is there a way to get only the output string:
03-JAN using the backquote syntax ? or do I need to use the
ppl function EXTRACT() ?



Ansley Manke  Pacific Marine Environmental Laboratory  Seattle WA  (206)526-6246

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement