[GRASS-user] [GRASS-dev] execGRASS("r.diversity"): [Error 3] Cannot find path specified \\.grass7\\r.li
Sandra MacFadyen
sandramf at live.co.za
Sat May 24 01:39:23 PDT 2014
P.S.
If I create conf_diversity_5.0 using g.gui.rlisetup as follows:
(Sat May 24 10:34:53 2014)
g.gui.rlisetup
D1/1: grass.script.core.start_command(): g.gisenv -n
(Sat May 24 10:35:04 2014) Command finished (10 sec)
I get the following conf_diversity_5.0 file content:
SAMPLINGFRAME 0|0|1|1
SAMPLEAREA -1|-1|0.010526315789473684|0.009487666034155597
MOVINGWINDOW
The sample area, shouldn't that be the bounding coordinates of lsat5_1987_10, in this case meters (lcc, nad83?)
-----Original Message-----
From: Sandra MacFadyen [mailto:sandramf at live.co.za]
Sent: 24 May 2014 10:32 AM
To: 'Markus Neteler'
Cc: 'Luca Delucchi'; 'Glynn Clements'; 'GRASS user list'
Subject: RE: [GRASS-dev] [GRASS-user] execGRASS("r.diversity"): [Error 3] Cannot find path specified \\.grass7\\r.li
Hi Markus,
Here are the results:
(Sat May 24 10:28:44 2014)
g.gisenv set=DEBUG=1
(Sat May 24 10:28:45 2014) Command finished (0 sec)
(Sat May 24 10:29:06 2014)
g.region rast=lsat5_1987_10 at landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
(Sat May 24 10:29:07 2014) Command finished (0 sec)
(Sat May 24 10:29:22 2014)
r.diversity input=lsat5_1987_10 at landsat prefix=lsat5_1987_div_ alpha=0.5 size=5
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: grass.script.core.start_command(): r.li.simpson --q input=lsat5_1987_10 at landsat conf=conf_diversity_5.0
output=lsat5_1987_div__simpson_size_5.0
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster(): name=MASK mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: r.li.daemon pathSetup: [C:\Users\Sands\AppData\Roa ming\GRASS7\r.li\conf_diversity_5.0]
ERROR: Illegal areas disposition
D1/1: grass.script.core.start_command(): r.li.shannon --q input=lsat5_1987_10 at landsat conf=conf_diversity_5.0
output=lsat5_1987_div__shannon_size_5.0
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster(): name=MASK mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: r.li.daemon pathSetup: [C:\Users\Sands\AppData\Roa ming\GRASS7\r.li\conf_diversity_5.0]
ERROR: Illegal areas disposition
D1/1: grass.script.core.start_command(): r.li.pielou --q input=lsat5_1987_10 at landsat conf=conf_diversity_5.0
output=lsat5_1987_div__pielou_size_5.0
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster(): name=MASK mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: r.li.daemon pathSetup: [C:\Users\Sands\AppData\Roa ming\GRASS7\r.li\conf_diversity_5.0]
ERROR: Illegal areas disposition
D1/1: grass.script.core.start_command(): r.li.renyi --q
output=lsat5_1987_div__renyi_size_5.0_alpha_0.5
input=lsat5_1987_10 at landsat conf=conf_diversity_5.0
alpha=0.5
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 mapset=landsat
D1/1: G_find_raster(): name=MASK mapset=landsat
D1/1: G_find_raster2(): name=lsat5_1987_10 at landsat mapset=
D1/1: r.li.daemon pathSetup: [C:\Users\Sands\AppData\Roa ming\GRASS7\r.li\conf_diversity_5.0]
ERROR: Illegal areas disposition
D1/1: grass.script.core.start_command(): g.message message=Done.
Done.
(Sat May 24 10:29:23 2014) Command finished (0 sec)
(Sat May 24 10:29:40 2014)
g.gisenv set=DEBUG=0
(Sat May 24 10:29:41 2014) Command finished (0 sec)
Looks like it wants the conf_diversity_5.0 file from C:\Users\Sands\AppData\Roa ming\GRASS7\r.li\conf_diversity_5.0? Which is not there.
Thanks again for all your help.
Cheers
Sandra
-----Original Message-----
From: neteler.osgeo at gmail.com [mailto:neteler.osgeo at gmail.com] On Behalf Of Markus Neteler
Sent: 24 May 2014 10:13 AM
To: Sandra MacFadyen
Cc: Luca Delucchi; Glynn Clements; GRASS user list
Subject: Re: [GRASS-dev] [GRASS-user] execGRASS("r.diversity"): [Error 3] Cannot find path specified \\.grass7\\r.li
On Sat, May 24, 2014 at 9:16 AM, Sandra MacFadyen <sandramf at live.co.za> wrote:
> Hi Luca,
>
> Yes, I set the region to "lsat5_1987_10" beforehand:
>
> g.region -p
> projection: 99 (Lambert Conformal Conic)
> zone: 0
> datum: nad83
> ellipsoid: a=6378137 es=0.006694380022900787
> north: 228513
> south: 214975.5
> west: 629992.5
> east: 645012
> nsres: 28.5
> ewres: 28.5
> rows: 475
> cols: 527
> cells: 250325
ok - now let's make another test. First run
g.gisenv set="DEBUG=1"
then execute
r.diversity ... (your command line)
Please tell us what happens right before the error.
To switch the debug message off after that:
g.gisenv set="DEBUG=0"
Markus
More information about the grass-user
mailing list