[GRASS-user] [GRASS-dev] execGRASS("r.diversity"): [Error 3] Cannot find path specified \\.grass7\\r.li
Sandra MacFadyen
sandramf at live.co.za
Thu May 22 05:45:03 PDT 2014
Hi Luca,
Thank you very much for your reply.
With the north carolina dataset on image-band "lsat5_1987_10" I get the same error:
(Thu May 22 14:35:33 2014)
r.diversity input=lsat5_1987_10 at landsat prefix=lsat5_1987_div_ alpha=0.5 size=5
ERROR: Illegal areas disposition
ERROR: Illegal areas disposition
ERROR: Illegal areas disposition
ERROR: Illegal areas disposition
Done.
(Thu May 22 14:35:34 2014) Command finished (0 sec)
When running "g.region rast=s1993_tm5_rad.1 at test1 -ap", I get the same error:
> execGRASS("g.region", flags=c("a", "p"), rast="s1993_tm5_rad.1")
projection: 1 (UTM)
zone: -36
datum: wgs84
ellipsoid: wgs84
north: 7389715
south: 7179985
west: 272685
east: 506715
nsres: 30
ewres: 30
rows: 6991
cols: 7801
cells: 54536791
> execGRASS("r.diversity",flags="overwrite", parameters=list(input="s1993_tm5_rad.1", prefix="s1993_tm5_rad_divers.1", alpha=0.5, size=5))
ERROR: Illegal areas disposition
ERROR: Illegal areas disposition
ERROR: Illegal areas disposition
ERROR: Illegal areas disposition
Done.
>
I upgraded to GRASS GIS 7.1svn (60382), with the same results.
Thank you
Sandra
-----Original Message-----
From: Luca Delucchi [mailto:lucadeluge at gmail.com]
Sent: 22 May 2014 01:41 PM
To: Sandra MacFadyen
Cc: Markus Neteler; Glynn Clements; GRASS user list
Subject: Re: [GRASS-dev] [GRASS-user] execGRASS("r.diversity"): [Error 3] Cannot find path specified \\.grass7\\r.li
On 22 May 2014 12:06, Sandra MacFadyen <sandramf at live.co.za> wrote:
> Hi Markus,
>
Hi Sandra
> No, when run directly in GRASS, I get the same error:
>
> r.diversity --overwrite input=s1993_tm5_rad.1 at test1 prefix=s1993_div_
> alpha=0.5 size=5
> ERROR: Illegal areas disposition
> ERROR: Illegal areas disposition
> ERROR: Illegal areas disposition
> ERROR: Illegal areas disposition
> Done.
>
please could you make a test with north carolina dataset [0] with a landsat image?
I'm not able to replicate your problem....
> I also doubled checked my projection as region settings, which appear fine:
>
>> execGRASS("g.proj", flags="p")
> -PROJ_INFO-------------------------------------------------
> name : Universal Transverse Mercator
> proj : utm
> datum : wgs84
> ellps : wgs84
> zone : 36
> south : defined
> no_defs : defined
> -PROJ_EPSG-------------------------------------------------
> epsg : 32736
> -PROJ_UNITS------------------------------------------------
> unit : meter
> units : meters
> meters : 1
>> execGRASS("g.region", flags=c("p","m"))
> projection: 1 (UTM)
> zone: -36
> datum: wgs84
> ellipsoid: wgs84
> north: 7389715
> south: 7179985
> west: 272685
> east: 506715
> nsres: 30
> ewres: 30
> rows: 6991
> cols: 7801
> cells: 54536791
>>
>
could you please run before "g.region rast=s1993_tm5_rad.1 at test1 -ap"
> I removed the config files I created and still the same error :(
>
With r.diversity no text file will be created but the outputs are maps...
> If I run r.li.shannon instead, the text file is created but it's empty.
>
>> execGRASS("r.li.shannon", parameters=list(input="s1993_tm5_rad.1",
>> config="conf_diversity_5.0", output="s1993_tm5_rad_shan.1"))
> RLISHA~1 complete. Result written to text file
> <C:\Users\LFoxcroft\AppData\Roaming\GRASS7\r.li\output\s1993_tm5_rad_s
> han.1>
> Warning message:
> running command 'r.li.shannon.exe input=s1993_tm5_rad.1
> config=conf_diversity_5.0 output=s1993_tm5_rad_shan.1' had status 1
>
This seems another problem....
[0] http://grass.osgeo.org/sampledata/north_carolina/nc_spm_08_grass7.tar.gz
> Thanks
> Sandra
>
--
ciao
Luca
http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
More information about the grass-user
mailing list