[GRASS-dev] Compute mahalanobis distance using Scipy

Paulo van Breugel p.vanbreugel at gmail.com
Mon Feb 16 13:50:26 PST 2015


On Sat, Feb 14, 2015 at 7:29 PM, Vaclav Petras <wenzeslaus at gmail.com> wrote:

>
> On Sat, Feb 14, 2015 at 11:47 AM, Paulo van Breugel <
> p.vanbreugel at gmail.com> wrote:
>
>>
>> For a quick solution, what about using r.tile to split the input data in
>> tiles and compute the mahalanobis distance per tile.
>>
>
> See PyGRASS GridModule class which will do tiling (and a lot of other
> things) for you.
>
> http://grass.osgeo.org/grass70/manuals/libpython/pygrass.modules.grid.html
>

The Grid Module does indeed what I want, except that I want to run a python
function (the mahalanobis distance computation) on the tiles, while the
GridModule requires a raster GRASS r.* command. Any way around that?
Writing an intermediate addon/function that I can then call with the
GridModule?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150216/d7a79db4/attachment.html>


More information about the grass-dev mailing list