[GRASSLIST:754] s.surf.krig

Hi,

is it (s.surf.krig) not included in a standard GRASS 5 distribution ? Where can I find it ?
Thanks.

Viktoras

is it (s.surf.krig) not included in a standard GRASS 5 distribution ?
Where can I find it ?

It's in both

src/sites/s.surf.krig/
src.contrib/CERL/sites/s.surf.krig/

but those two are not the same.
The first looks newer.

From: http://grass.ibiblio.org/grass5/source/README.html
***********************************************
Installing single modules from source:

The "configure" process creates two scripts (after "make install"
these scripts will be stored in /usr/local/bin/ if not having used
configure's option "--with-bindir")

   gmake5
   gmake5 -i
   gmakelinks5 -i

Use script "gmake5" to compile single modules locally, run
"gmakelinks5" afterwards to set internal links for the new module.
The "-i" flag will install them into target directory, so that no
further "make install" is required.

Enjoy ongoing GRASS development!

***********************************************

On Mon, Jul 21, 2003 at 12:42:08PM +1200, H Bowman wrote:

> is it (s.surf.krig) not included in a standard GRASS 5 distribution ?
> Where can I find it ?

It's in both

src/sites/s.surf.krig/
src.contrib/CERL/sites/s.surf.krig/

but those two are not the same.
The first looks newer.

Note that there will be a reason that the code is not compiled
by default. The development team does not recommend to use it.

A viable solution is to use the GRASS/R interface and work
in R for kriging. See the web page "geostatistics" for details.

Markus

I "crashed" into some problems while working...

I am using Grass 5.0.

1) I digitized my sites. Then used v.to.sites for conversion.
But the result sites file was in the "old" format, while some GRASS modules require "new" format and some of them refuses to work with old :frowning: or with new.

s.surf.rst asks and modifies that file to a new format but only when run from a terminal, it just produces a message and exits under tk/tcl interface.
while s.surf.idw worked only with "new" format

I wrote a small script to copy that file to a new format (x|y|%z1 %z2).
Now interpolations go well, but then d.site.labels refuses to display labels unless site atribute is defined as double and s.voronoi refuses to put labels indicating: syntax error in numbers parameter without any possibility to select "double" format which worked in d.site.labels. Did they expect the old sites format ?

Or am I doing something wrong ?

2) In some cases while doing s.surf.rst it displays message G_ludcmp() failed! n=0.
What does it mean ? Is it so that "0" can not be used as an elevation ?

Viktoras

Now interpolations go well, but then d.site.labels refuses to
display labels unless site atribute is defined as double

just a note on 'double's in d.site.labels. I've yet to add it as an
option that controls number of sig. figs.; but you can get rid of the
".000000" after each should-be-integer value with the following patch to
src/display/d.site.labels/do_labels.c

==========================================================
--- do_labels.c Fri Apr 26 15:12:25 2002
+++ do_labels2.c Tue Jul 22 22:38:54 2003
@@ -82,7 +82,7 @@
                 G_fatal_error("No double attributes!\n");
             if (theSite->dbl_alloc <= index)
                 G_fatal_error("Double index out of range!\n");
- sprintf(theText, "%lf", theSite->dbl_att[index]);
+ sprintf(theText, "%.0lf", theSite->dbl_att[index]);
             break;
         case SITE_ATTR_COORD:
             *ptr = '(';

Hamish