[GRASS-dev] Passing several floating values to one single option

Pierre Roudier pierre.roudier at gmail.com
Wed Sep 12 17:07:15 PDT 2012


Hi all,

This might be very simple, but I can't find an answer in the doco - so
here I am,

I'm trying to pass several floats to a single option in a Python script:

> python my.module.py input=input output=output myoption=0.1,0.2,0.5

Is there a clever way to declare myoption so that it would parse it as
some 3 floats? Or do I need to define it as a string and parse it
manually?

Cheers,

Pierre

-- 
Scientist
Landcare Research, New Zealand


More information about the grass-dev mailing list