[GRASS-dev] Compute mahalanobis distance using Scipy

Paulo van Breugel p.vanbreugel at gmail.com
Mon Mar 16 13:23:52 PDT 2015


On Mon, Mar 16, 2015 at 3:30 PM, Glynn Clements <glynn at gclements.plus.com>
wrote:

>
> Paulo van Breugel wrote:
>
> > When running the tiled_function function you wrote [1] I am getting the
> > error below.
> >
> > {{{
> > tiled_function(raster_inputs=ref, raster_output="out_mah1",
> > func=mahalanobis_distances)
> > }}}
> >
> > ERROR: No null file for <out_mah1>
> >
> > Any idea what is wrong?
>
> That error message is from lib/raster, and indicates that the null
> file couldn't be created (Rast_open_new() should probably generate an
> error or warning if this happens; the fact that it doesn't suggests
> that it isn't a common occurrence).
>
> Were there any other warnings prior to that? Check the permissions on
> the mapset directory, the cell_misc subdirectory, and the
> cell_misc/out_mah1 subdirectory (if it exists).
>

No prior warnings, as far as I could see. Permissions on those folders are
OK. No cell_misc/out_mah1, but that makes sense I guess as that is the
raster file that should be created by the tiled_function.


>
> Alternatively, it might indicate an issue in the PyGrass library; that
> code is relatively new.
>

OK, hopefully the PyGrass gurus can have a look at it.

>
> --
> Glynn Clements <glynn at gclements.plus.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150316/2e75c976/attachment.html>


More information about the grass-dev mailing list