Luis Lisboa wrote:

> I'm working on 6.4.0 version and I want to build a Python scripts that acess
> multiple files. From GRASS7 i.spectral I see that raster variable is a
> multiple and this is performed.
> raster = options['raster']
> rastermaps = raster.split(',')
> 
> My question is regarding this: how can I access second file for, for
> instance, do a mapcalc or a for cycle?

The .split() method returns a list, so in the above case you can use
e.g.:

        for map in rastermaps:
            ...

-- 
Glynn Clements <[email protected]>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to