26 reputation
2
bio website
location
age
visits member for 2 years, 1 month
seen Mar 16 '13 at 23:47

Sep
13
comment Python script for GRASS - executing from PHP
many thanks for your suggestions. actually, while run on command line the script works fine.the problem, however, occurs when I try to run it via a web browser. I.e.there is a website I created, mostly php-based. within the website's code there is a line <<echo system("./FILENAME.py");>> which should execute a script of FILENAME.py and print out its results. Unfortunately when open the website, the grass-part of FILENAME.py code is omitted (i.e."one" "two" etc are printed but the csv file isn't created).
Sep
1
comment Python script for GRASS - executing from PHP
my bad. I should have written that in the script I use the real names of my GRASS location and mapset instead of 'LOCATION NAME' and 'MAPSET NAME'. likewise, in gisdbase=os.path.join("PATH") the actual directory path is provided instead of "PATH"
Aug
31
comment Python script for GRASS - executing from PHP
I think I should add that all this php-python stuff is a part of a Web-application I am developing now. I use lampp and I've run it only on localhost so far
Aug
31
asked Python script for GRASS - executing from PHP
Jun
10
awarded  Teacher
Jun
10
awarded  Student
Mar
20
answered r.mapcalculator and python again
Mar
17
comment r.mapcalculator and python again
this is indeed a crucial question. how to "tell" grass to treat "b" as a value provided by the user (a=raw_input, b=float(a)) rather than a map (which obviously does not exist? as you can see I'm not an expert either
Mar
17
asked r.mapcalculator and python again