[Thread Prev][Thread Next][Index]

Difference between command and go script parameters



                Dear ferreters,

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.

Please see the command :

[mercator@blade1 animation]$ ferret -gif
        NOAA/PMEL TMAP
        FERRET v5.50
        Linux 2.4.3-12smp - 01/15/03
        30-Oct-03 14:01

yes? use "http://opendap.mercator-ocean.fr/dodsC/mercator_psy2v1_mersea_section1"
yes? set region/y=0:1000
yes? repeat/k=1:10 (FILL/level=(-1,13,1) temperature ; frame/file=temp_section.gif)
!-> REPEAT: K=1
!-> REPEAT: K=2
!-> REPEAT: K=3
!-> REPEAT: K=4
!-> REPEAT: K=5
!-> REPEAT: K=6
!-> REPEAT: K=7
!-> REPEAT: K=8
!-> REPEAT: K=9
!-> REPEAT: K=10
yes? exit

It's OK.
And with the script :

[mercator@blade1 animation]$ ferret -gif
        NOAA/PMEL TMAP
        FERRET v5.50
        Linux 2.4.3-12smp - 01/15/03
        30-Oct-03 14:02
 
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)
exit

If you have some ideas, please tell me.
Tony

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tony Jolibois
CLS, Direction Océanographie Spatiale
Tel: (+33) (0) 561 393 797
Internet: http://www.cls.fr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement