Ok, so the actual path is: C:\Users\Sands\AppData\Roaming\GRASS7\r.li (without the space) So I renamed it (temporarily): C:\Users\Sands\AppData\Roa ming\GRASS7\r.li (with the space) And reran the code with the same error. Also, if I create the conf_diversity_5.0 file and place it there, it does not disappear after the error, which makes me think it's just a line break in the code and not the problem :(
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Markus Neteler Sent: 24 May 2014 11:09 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 10:44 AM, Sandra MacFadyen <[email protected]> wrote: > Maybe a silly question but: Is there a space in the path where there > shouldn't be: C:\Users\Sands\AppData\Roa > ming\GRASS7\r.li\conf_diversity_5.0 > i.e. "\Roa ming\"? Mhh strange. Is it just broken or really a white space therein? BTW: The Windows support in r.li has been backported to GRASS 7.0 in r60231 (post beta2) http://trac.osgeo.org/grass/changeset/60231/grass/branches/releasebranch_7_0/raster/r.li/r.li.daemon which uses G_config_path() which in turn calls getenv("APPDATA") on Windows: (http://grass.osgeo.org/programming7/home_8c_source.html#l00096) The "Roaming" should come from that variable (I am no expert on Windows variables at all). Others here? ... > 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?) AFAIK r.li uses relative coordinates, so that's ok. Markus _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
