[gradsusr] argument with grads script

Christelle LACROIX cl at meteoconsult.fr
Fri Mar 9 04:19:04 EST 2012


Hi,


I have a problem: I try to pass 9 argument to a grads script, but it print
only 8.
Do it exist a limit of argument's number?

My script is  vent.gs

function main(args)

 'reinit'

say '###########################'
modele=subwrd(args,1)
numparam=subwrd(args,2)
latmax=subwrd(args,3)
lonmax=subwrd(args,4)
latmin=subwrd(args,5)
lonmin=subwrd(args,6)
param=subwrd(args,7)
pas=subwrd(args,8)
nbech=subwrd(args,9)
say args
say modele
say numparam
say latmax
say lonmax
say latmin
say lonmin
say param
say pas
say nbech
say '###########################'

....

and  i run with ./grimp_arg vents gfs_00 1 55 20 33 14 vents 6 24

where gfs_00 is modele, 1 numparam, 55 latmax, 20 lonmax, 33 latmin, 14
lonmin, vents param, 6 pas and 24 nbech.

Do you have an idea to resolve my problem, please.



CL
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120309/c3eeac7b/attachment-0003.html 


More information about the gradsusr mailing list