[GRASS-dev] Use 'from=' parameter in python script

Nikos Alexandris nik at nikosalexandris.net
Wed Mar 21 23:42:18 PDT 2018



Le Jeudi 22 mars 2018, Vaclav Petras a écrit :
> On Wed, Mar 21, 2018 at 7:57 PM, Nikos Alexandris <nik at nikosalexandris.net>
> wrote:
> >
> > how can I use the 'from' parameter in a python script? The following
> > ```
> > from_range=0,255
> > to_range=0,511
> > cls.runModule('r.rescale', input=band, output=output_map_name,
> >                        from=from_range, to=to_range, overwrite=True)
> > ```
> >
> > causes expectedly
> > ```
> > SyntaxError: invalid syntax
> > ```
> 
> 
> Try `from_`. I'm not sure at this point if it works in a gunittest (which
> you seem to be using).
> 
> Vaclav

I already tried that and it does not work. Yes, trying to build tests for the "new" i.rgb.his.

 Thank you, Nikos

-- 
Envoyé depuis mon Jolla


More information about the grass-dev mailing list