[Thread Prev][Thread Next][Index]
Re: Difference between command and go script parameters
On Thu, 30 Oct 2003, Tony Jolibois wrote:
> I have a strange problem : I try the same command by the hand or with a
> go script, one works and the go script not. It's a problem with the
> parameters of the script : I want to create some gif for an animation
> with the REPEAT command. With the command : repeat/k=1:10, it works, but
> when I pass the parameters with the script and do repeat/k=$1:$2 it
> doesn't work.
>
> yes? go creation_gif_section_temp.jnl 1 10
> **ERROR: illegal limits: "TEMPERATURE" is not in the range K=110
> Axis extremes are K=1:30
> CONTOUR/FILL/level=(-1,13,0.5) temperature
> Command file, command group, or REPEAT execution aborted
> yes?
>
> The script is :
>
> ! Creation d'images gif pour animation
> ! Parametres
> ! 1 : date debut
> ! 2 : date fin
>
> cancel mode verify
> cancel mode interp
> set mem/size=127
> cancel data/all
> palette rnb2
> set data
> "http://opendap.mercator-ocean.fr/dodsC/mercator_psy2v1_mersea_section1"
> set region/y="0":"1000"
> repeat/K="$1":"$2" (fill/level=(-1,13,0.5) temperature ; frame/file=temp.gif)
Hi Tony,
Ferret is interpreting $1":" as an input argument with a default string.
You could remove the quotes altogether, like this:
repeat/K=$1:$2
or put parentheses around the $1 and $2, like this:
repeat/K="($1)":"($2)"
See also:
http://ferret.wrc.noaa.gov/Ferret/Mail_Archives/fu_2003/msg00759.html
Cheers,
Andrew
+--------------------------------------------------------+
| Dr. Andrew T. Wittenberg | GFDL/NOAA |
| Andrew.Wittenberg@noaa.gov | Princeton, NJ |
+--------------------------------------------------------+
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement