<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
</head>
<body text="#000099" bgcolor="#FFFFFF">
To read in a raster with GRASS Python Scripting Library, I can use <br>
<br>
ref = garray.array()<br>
ref.read('mymap')<br>
<br>
But is it also possible to read in multiple raster layers at once?
Something like:<br>
<br>
ref = garray.array()<br>
ref.read(('map1','map2'))<br>
<br>
If not, what would be the best way to get an array with data from
multiple raster layers.. using a loop? <br>
<br>
What I am after is to get an array with multiple variables (raster
layers) to be used as input in e..g. numpy.cov
(<a class="moz-txt-link-freetext" href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.cov.html">http://docs.scipy.org/doc/numpy/reference/generated/numpy.cov.html</a>).
<br>
</body>
</html>