[GRASS-user] problems with compile i.landsat.acca add-onn

Dear all,

I'm new with working with Grass.
I try to use the extension i.landsat.acca to reduce the influence of clouds
in a Landsat Tm szene.
Trying to compile the script wich i downloaded from
http://svn.osgeo.org/grass/grass-addons/imagery/ don't work on my computer.
Mayby i do something wrong.
I have enjoy the README in the grass-addons SVN:
"Installation - Code Compilation"
http://trac.osgeo.org/grass/browser/grass-addons/README.
But it dos'nt work.

I work on a
UBUNTU Version 9.04
Grass 6.4.0~rc4-3
The path to Grass is:
/usr/lib/grass64
The path to the downloaded i.landsat.acca-files is:
$home/i.landsat.acca

I used the terminal-window under Ubuntu for the commands.
I'm in the path $home/i.landsat.acca .
The command i used is:
make MODULE_TOPDIR=/usr/lib/grass64/

The answer from my magical machine is:

Makefile:8: /usr/lib/grass64//include/Make/Module.make: No such file or
directory
make: *** Keine Regel, um »/usr/lib/grass64//include/Make/Module.make« zu
erstellen. Schluss.

Is there anyone who can help me.
I look the web for some answer, but i can't found...

Greatful Thanks
Michael

--
View this message in context: http://n2.nabble.com/problems-with-compile-i-landsat-acca-add-onn-tp3496808p3496808.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Saami Riet wrote:

I'm new with working with Grass.
I try to use the extension i.landsat.acca to reduce the
influence of clouds
in a Landsat Tm szene.
Trying to compile the script wich i downloaded from
http://svn.osgeo.org/grass/grass-addons/imagery/ don't
work on my computer.
Mayby i do something wrong.
I have enjoy the README in the grass-addons SVN:
"Installation - Code Compilation"
http://trac.osgeo.org/grass/browser/grass-addons/README.
But it dos'nt work.

I work on a
UBUNTU Version 9.04
Grass 6.4.0~rc4-3
The path to Grass is:
/usr/lib/grass64
The path to the downloaded i.landsat.acca-files is:
$home/i.landsat.acca

I used the terminal-window under Ubuntu for the commands.
I'm in the path $home/i.landsat.acca .
The command i used is:
make MODULE_TOPDIR=/usr/lib/grass64/

The answer from my magical machine is:

Makefile:8: /usr/lib/grass64//include/Make/Module.make: No
such file or
directory
make: *** Keine Regel, um
»/usr/lib/grass64//include/Make/Module.make« zu
erstellen. Schluss.

if grass was installed from a package, was the grass-dev
package installed too?

or did you compile from source code? if so point to the source
directory.

Hamish

Saami Riet wrote:

I'm new with working with Grass.
I try to use the extension i.landsat.acca to reduce the
influence of clouds
in a Landsat Tm szene.
Trying to compile the script wich i downloaded from
http://svn.osgeo.org/grass/grass-addons/imagery/ don't
work on my computer.
Mayby i do something wrong.
I have enjoy the README in the grass-addons SVN:
"Installation - Code Compilation"
http://trac.osgeo.org/grass/browser/grass-addons/README.
But it dos'nt work.

I work on a
UBUNTU Version 9.04
Grass 6.4.0~rc4-3
The path to Grass is:
/usr/lib/grass64
The path to the downloaded i.landsat.acca-files is:
$home/i.landsat.acca

I used the terminal-window under Ubuntu for the commands.
I'm in the path $home/i.landsat.acca .
The command i used is:
make MODULE_TOPDIR=/usr/lib/grass64/

The answer from my magical machine is:

Makefile:8: /usr/lib/grass64//include/Make/Module.make: No
such file or
directory
make: *** Keine Regel, um
»/usr/lib/grass64//include/Make/Module.make« zu
erstellen. Schluss.

if grass was installed from a package, was the grass-dev
package installed too?

or did you compile from source code? if so point to the source
directory.

Hamish

Hi Hamish,

thanks for you help.
It was so. The grass-dev package was not installed to the grass package.
I've installed it now.
But now i have more errors as the follows after the command "sudo make
MODULE_TOPDIR=/usr/lib/grass64":

gcc -I/tmp/buildd/grass-6.4.0~rc4/dist.i486-pc-linux-gnu/include -Wall -g
-O -DPACKAGE=\""grassmods"\"
-I/tmp/buildd/grass-6.4.0~rc4/dist.i486-pc-linux-gnu/include -o
OBJ.i486-pc-linux-gnu/algorithm.o -c algorithm.c
algorithm.c:6:23: Fehler: grass/gis.h: No such file or directory
algorithm.c:7:27: Fehler: grass/glocale.h: No such file or directory
algorithm.c: In Funktion »acca_first«:
algorithm.c:220: Warnung: Implizite Deklaration der Funktion
»G_allocate_raster_buf«
algorithm.c:220: Fehler: »CELL_TYPE« nicht deklariert (erste Benutzung in
dieser Funktion)
algorithm.c:220: Fehler: (Jeder nicht deklarierte Bezeichner wird nur einmal
aufgeführt
algorithm.c:220: Fehler: für jede Funktion in der er auftritt.)
algorithm.c:220: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne
Typkonvertierung
algorithm.c:221: Warnung: Implizite Deklaration der Funktion
»G_open_raster_new«
algorithm.c:222: Warnung: Implizite Deklaration der Funktion »G_fatal_error«
algorithm.c:222: Warnung: Implizite Deklaration der Funktion »_«
algorithm.c:232: Warnung: Implizite Deklaration der Funktion »G_window_rows«
algorithm.c:233: Warnung: Implizite Deklaration der Funktion »G_window_cols«
algorithm.c:239: Warnung: Implizite Deklaration der Funktion »G_percent«
algorithm.c:243: Warnung: Implizite Deklaration der Funktion
»G_get_d_raster_row«
algorithm.c:252: Warnung: Implizite Deklaration der Funktion
»G_is_d_null_value«
algorithm.c:252: Fehler: »DCELL« nicht deklariert (erste Benutzung in dieser
Funktion)
algorithm.c:252: Fehler: expected expression before »)« token
algorithm.c:257: Fehler: expected expression before »)« token
algorithm.c:329: Warnung: Implizite Deklaration der Funktion
»G_set_c_null_value«
algorithm.c:329: Fehler: »CELL« nicht deklariert (erste Benutzung in dieser
Funktion)
algorithm.c:329: Fehler: expected expression before »)« token
algorithm.c:333: Fehler: expected expression before »)« token
algorithm.c:336: Warnung: Implizite Deklaration der Funktion
»G_put_raster_row«
algorithm.c:343: Warnung: Implizite Deklaration der Funktion »G_free«
algorithm.c:344: Warnung: Implizite Deklaration der Funktion »G_close_cell«
algorithm.c: In Funktion »acca_second«:
algorithm.c:361: Warnung: Implizite Deklaration der Funktion »G_find_cell2«
algorithm.c:361: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne
Typkonvertierung
algorithm.c:364: Fehler: »CELL_TYPE« nicht deklariert (erste Benutzung in
dieser Funktion)
algorithm.c:364: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne
Typkonvertierung
algorithm.c:365: Warnung: Implizite Deklaration der Funktion
»G_open_cell_old«
algorithm.c:370: Warnung: Zuweisung erzeugt Zeiger von Ganzzahl ohne
Typkonvertierung
algorithm.c:390: Warnung: Implizite Deklaration der Funktion
»G_get_c_raster_row«
algorithm.c:395: Warnung: Implizite Deklaration der Funktion
»G_is_c_null_value«
algorithm.c:395: Fehler: »CELL« nicht deklariert (erste Benutzung in dieser
Funktion)
algorithm.c:395: Fehler: expected expression before »)« token
algorithm.c:397: Fehler: expected expression before »)« token
algorithm.c:401: Fehler: expected expression before »)« token
algorithm.c:404: Warnung: Klammern um && innerhalb von || empfohlen
algorithm.c:406: Fehler: »DCELL« nicht deklariert (erste Benutzung in dieser
Funktion)
algorithm.c:406: Fehler: expected expression before »)« token
algorithm.c:409: Fehler: expected expression before »)« token
algorithm.c:414: Fehler: expected expression before »)« token
algorithm.c:416: Fehler: expected expression before »)« token
algorithm.c:422: Warnung: Klammern um && innerhalb von || empfohlen
algorithm.c:424: Fehler: expected expression before »)« token
algorithm.c:427: Fehler: expected expression before »)« token
algorithm.c:444: Warnung: Implizite Deklaration der Funktion »G_remove«
algorithm.c:450: Warnung: Implizite Deklaration der Funktion »G_rename«
algorithm.c:353: Warnung: Variable »i« wird nicht verwendet
make: *** [OBJ.i486-pc-linux-gnu/algorithm.o] Fehler 1

Please,
Can you help.

Michael

--
View this message in context: http://n2.nabble.com/problems-with-compile-i-landsat-acca-add-onn-tp3496808p3498361.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Sun, Aug 23, 2009 at 1:24 PM, Saami Riet<cosmicmichi@gmx.de> wrote:

Saami Riet wrote:

...

I work on a
UBUNTU Version 9.04
Grass 6.4.0~rc4-3
The path to Grass is:
/usr/lib/grass64

...

It was so. The grass-dev package was not installed to the grass package.
I've installed it now.
But now i have more errors as the follows after the command "sudo make
MODULE_TOPDIR=/usr/lib/grass64":

gcc -I/tmp/buildd/grass-6.4.0~rc4/dist.i486-pc-linux-gnu/include -Wall -g
-O -DPACKAGE=\""grassmods"\"
-I/tmp/buildd/grass-6.4.0~rc4/dist.i486-pc-linux-gnu/include -o
OBJ.i486-pc-linux-gnu/algorithm.o -c algorithm.c
algorithm.c:6:23: Fehler: grass/gis.h: No such file or directory
algorithm.c:7:27: Fehler: grass/glocale.h: No such file or directory

...

It doesn't find grass/gis.h etc., hence the errors. At you can see, gcc
searches in /tmp/buildd/grass-6.4.0~rc4/dist.i486-pc-linux-gnu/include but
should search in /usr/lib/grass64/include/. IMHO a Debian/Ubuntu
packaging isse.

What you can do (workaround):

Edit (as sudo):
/usr/lib/grass64/include/Make/Platform.make
and fix the wrong path(s) there to /usr/lib/grass64/

Then try again to compile and will hopefully find itself.

I may be wrong, though.

Markus

On Sun, Aug 23, 2009 at 1:41 PM, Markus Neteler<neteler@osgeo.org> wrote:

On Sun, Aug 23, 2009 at 1:24 PM, Saami Riet<cosmicmichi@gmx.de> wrote:

Saami Riet wrote:

...

I work on a
UBUNTU Version 9.04
Grass 6.4.0~rc4-3

...

It doesn't find grass/gis.h etc., hence the errors. At you can see, gcc
searches in /tmp/buildd/grass-6.4.0~rc4/dist.i486-pc-linux-gnu/include but
should search in /usr/lib/grass64/include/. IMHO a Debian/Ubuntu
packaging isse.

I think you got hit by
http://trac.osgeo.org/grass/ticket/620

What you can do (workaround):

... (my other email)

please let us know if it helps.

Markus

I have a problem with v.to.rast.

v.to.rast seems to be inconsistent as follows (see attached picture):

I splitted a line and built a network. So I have lines and corresponding
nodes.

In this case on coordinate 33.1583333333333|3.21666666666667.

Running v.to.rast for the points, the point is converted to the
raster-cell in the south-east.
Running v.to.rast for the lines (with cat as raster-value), the line in
the north-west of the point gets the cat of the line on the south-east.
(please see the picture, to get what I mean)

I ran it all in the same resolution. The splitting is independent from
raster resolution.

Is this a known inconsistence or a "bug"? Or am I doing something wrong?

Thanks a lot in advance,
Achim

(attachments)

v.to.rast.png

On Sun, Aug 23, 2009 at 1:41 PM, Markus Neteler<neteler@osgeo.org> wrote:

On Sun, Aug 23, 2009 at 1:24 PM, Saami Riet<cosmicmichi@gmx.de> wrote:

Saami Riet wrote:

...

I work on a
UBUNTU Version 9.04
Grass 6.4.0~rc4-3

...

It doesn't find grass/gis.h etc., hence the errors. At you can see, gcc
searches in /tmp/buildd/grass-6.4.0~rc4/dist.i486-pc-linux-gnu/include but
should search in /usr/lib/grass64/include/. IMHO a Debian/Ubuntu
packaging isse.

I think you got hit by
http://trac.osgeo.org/grass/ticket/620

What you can do (workaround):
... (my other email)
please let us know if it helps.

Markus

Thank you
again...
changed the path in the file Platform.make:

67 GRASS_HOME = /usr/lib/grass64/
68 RUN_GISBASE = /usr/lib/grass64/

used again the command:

sudo make MODULE_TOPDIR=/usr/lib/grass64

and got the following messages:
...
/usr/lib/grass64/include/Make/Module.make:15: Warnung: Alte Befehle für das
Ziel »/usr/lib/grass64/« werden ignoriert
gcc -I/usr/lib/grass64/ /dist.i486-pc-linux-gnu/include -Wall -g -O
-DPACKAGE=\""grassmods"\" -I/usr/lib/grass64/
/dist.i486-pc-linux-gnu/include -o OBJ.i486-pc-linux-gnu/algorithm.o -c
algorithm.c
gcc: /dist.i486-pc-linux-gnu/include: No such file or directory
gcc: /dist.i486-pc-linux-gnu/include: No such file or directory
algorithm.c:6:23: Fehler: grass/gis.h: No such file or directory
algorithm.c:7:27: Fehler: grass/glocale.h: No such file or directory
algorithm.c: In Funktion »acca_first«:
algorithm.c:220: Warnung: Implizite Deklaration der Funktion
»G_allocate_raster_buf«
algorithm.c:220: Fehler: »CELL_TYPE« nicht deklariert (erste Benutzung in
dieser Funktion)
...

Is this a big problem?
Mayby there is a answer for it.
Please help.

Michael

--
View this message in context: http://n2.nabble.com/problems-with-compile-i-landsat-acca-add-onn-tp3496808p3498726.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Hi,

running v.net with does not build nodes where it should:

When having three lines touching in one point, sometimes two nodes
instead of one common are generated.

has it to do with the direction of lines, that should be connected to a
node?

Can I force somehow to build one node connecting all connected lines?

Best regards,
Achim

Hi,

I am still dealing with this serious problem (for me at least).

v.net produces sometimes two nodes, where one should be, while on some
points, where (tree) lines touching one is produced.

The coordinates are exactly the same. Naturally, removing double
geometry features results in missing points (cats).

I tried with grass 6.4 and 6.5.

I tried to reproduce it in spearfish, without success.

What could it be?
I'm really stuck here.
Help is very welcome!
Achim

Stranded, I am attaching a small example on

EPSG 4326 (res 0:00:30 x 0:00:30)

projection: 3 (Latitude-Longitude)
zone: 0
datum: wgs84
ellipsoid: wgs84
north: 9:00:15N
south: 7:40:45N
west: 27:30:45E
east: 28:34:01.066017E
nsres: 0:00:30
ewres: 0:00:29.890284
rows: 159
cols: 127
cells: 20193

Here is one correct and one non-correct node built, using v.net:
v.net --overwrite input=lines_example output=lines_example_net

after renewing cats, I get the following output of:
v.net --overwrite input=lines_example_import_net
output=lines_example_import_net operation=nreport
1 1
2 2,1,5
3 2
4 3
5 3
6 6,4
7 4
8 5
9 6

achim schrieb:

Hi,

running v.net with does not build nodes where it should:

When having three lines touching in one point, sometimes two nodes
instead of one common are generated.

has it to do with the direction of lines, that should be connected to a
node?

Can I force somehow to build one node connecting all connected lines?

Best regards,
Achim
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

(attachments)

lines_example.zip (2 KB)

Even though the coordinates are identical, I had to snap the lines via
v.clean with a very small thresh.

By the way, the common node of the two of the three was generated by
breaking on the node of the other. Maybe some rounding issues?

(This is something I tried before, but unfortunately with type=point).

Once again, I wonder and once again a light dawned on me.

Thanks for participation,
Achim

achim schrieb:

Hi,

I am still dealing with this serious problem (for me at least).

v.net produces sometimes two nodes, where one should be, while on some
points, where (tree) lines touching one is produced.

The coordinates are exactly the same. Naturally, removing double
geometry features results in missing points (cats).

I tried with grass 6.4 and 6.5.

I tried to reproduce it in spearfish, without success.

What could it be?
I'm really stuck here.
Help is very welcome!
Achim

Stranded, I am attaching a small example on

EPSG 4326 (res 0:00:30 x 0:00:30)

projection: 3 (Latitude-Longitude)
zone: 0
datum: wgs84
ellipsoid: wgs84
north: 9:00:15N
south: 7:40:45N
west: 27:30:45E
east: 28:34:01.066017E
nsres: 0:00:30
ewres: 0:00:29.890284
rows: 159
cols: 127
cells: 20193

Here is one correct and one non-correct node built, using v.net:
v.net --overwrite input=lines_example output=lines_example_net

after renewing cats, I get the following output of:
v.net --overwrite input=lines_example_import_net
output=lines_example_import_net operation=nreport
1 1
2 2,1,5
3 2
4 3
5 3
6 6,4
7 4
8 5
9 6

achim schrieb:

Hi,

running v.net with does not build nodes where it should:

When having three lines touching in one point, sometimes two nodes
instead of one common are generated.

has it to do with the direction of lines, that should be connected to a
node?

Can I force somehow to build one node connecting all connected lines?

Best regards,
Achim
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

------------------------------------------------------------------------

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Thank you Markus
again...the problem with compile the add-onn under Ubuntu is not fixed,
changed the path in the file Platform.make:

67 GRASS_HOME = /usr/lib/grass64/
68 RUN_GISBASE = /usr/lib/grass64/

used again the command:

sudo make MODULE_TOPDIR=/usr/lib/grass64

and got the following messages:
...
/usr/lib/grass64/include/Make/Module.make:15: Warnung: Alte Befehle für das
Ziel »/usr/lib/grass64/« werden ignoriert
gcc -I/usr/lib/grass64/ /dist.i486-pc-linux-gnu/include -Wall -g -O
-DPACKAGE=\""grassmods"\" -I/usr/lib/grass64/
/dist.i486-pc-linux-gnu/include -o OBJ.i486-pc-linux-gnu/algorithm.o -c
algorithm.c
gcc: /dist.i486-pc-linux-gnu/include: No such file or directory
gcc: /dist.i486-pc-linux-gnu/include: No such file or directory
algorithm.c:6:23: Fehler: grass/gis.h: No such file or directory
algorithm.c:7:27: Fehler: grass/glocale.h: No such file or directory
algorithm.c: In Funktion »acca_first«:
algorithm.c:220: Warnung: Implizite Deklaration der Funktion
»G_allocate_raster_buf«
algorithm.c:220: Fehler: »CELL_TYPE« nicht deklariert (erste Benutzung in
dieser Funktion)
...

Is this a big problem?
Mayby there is a answer for it.
Please help.

Michael
--
View this message in context: http://n2.nabble.com/problems-with-compile-i-landsat-acca-add-onn-tp3496808p3579525.html
Sent from the Grass - Users mailing list archive at Nabble.com.

On Fri, Sep 4, 2009 at 2:14 PM, Saami Riet<cosmicmichi@gmx.de> wrote:

Thank you Markus
again...the problem with compile the add-onn under Ubuntu is not fixed,
changed the path in the file Platform.make:

67 GRASS_HOME = /usr/lib/grass64/
68 RUN_GISBASE = /usr/lib/grass64/

used again the command:

sudo make MODULE_TOPDIR=/usr/lib/grass64

and got the following messages:
...
/usr/lib/grass64/include/Make/Module.make:15: Warnung: Alte Befehle für das
Ziel »/usr/lib/grass64/« werden ignoriert
gcc -I/usr/lib/grass64/ /dist.i486-pc-linux-gnu/include -Wall -g -O
-DPACKAGE=\""grassmods"\" -I/usr/lib/grass64/
/dist.i486-pc-linux-gnu/include ...

As you can see you have an illegal white space there:

gcc -I/usr/lib/grass64/ /dist.i486-pc-linux-gnu/include ...
should be
gcc -I/usr/lib/grass64/dist.i486-pc-linux-gnu/include
etc.

Please carefully check Platform.make for this (I suggest to remove the
trailing / from the

67 GRASS_HOME = /usr/lib/grass64/
68 RUN_GISBASE = /usr/lib/grass64/

entries.

cheers
Markus

Thanks Markus.
The Problem is fixed now and was a different one.
I have delete all Grass Version on my computer an start to compile Grass
like describe here:

http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu

After that i also can compile the i.landsat.acca as normal

sudo make MODULE_TOPDIR=/path/to/your/grass/directory.

Thanks to all and best greetings.

Michael

--
View this message in context: http://n2.nabble.com/problems-with-compile-i-landsat-acca-add-onn-tp3496808p3607201.html
Sent from the Grass - Users mailing list archive at Nabble.com.

Thanks Markus.
The Problem is fixed now and was a different one.
I have delete all Grass Version on my computer an start to compile Grass
like describe here:

http://grass.osgeo.org/wiki/Compile_and_Install_Ubuntu

After that i also can compile the i.landsat.acca as normal

sudo make MODULE_TOPDIR=/path/to/your/grass/directory.

Thanks to all and best greetings.

Michael

--
View this message in context: http://n2.nabble.com/problems-with-compile-i-landsat-acca-add-onn-tp3496808p3607213.html
Sent from the Grass - Users mailing list archive at Nabble.com.