[GRASS-user] use nnbathy 1.96 as stand alone in windows7?

Helmut Kudrnovsky hellik at web.de
Sat Aug 6 11:57:51 EDT 2011


hi,

>Thanks so much for the speedy replies!
>
> However, I am confused which files to complile for 1.96. Is there another
>svn repository for that? or is it the same as in this link:
>http://nn-c.googlecode.com/svn/nn?  Thanks again in advance!

the README says:
Version 1.82

and also http://code.google.com/p/nn-c/source/list

from the README

"Please send comments and bugs to Pavel.Sakov gmail.com ."

so maybe just ask the author of the code



what I've tried

my build environment is

(1) the osgeo4w-environment (http://trac.osgeo.org/osgeo4w/),
(2) completed with libs and packages described in http://trac.osgeo.org/grass/wiki/CompileOnWindows

=> http://grass.osgeo.org/wiki/GRASS_AddOns#r.surf.nnbathy points to Pavel Sakov's nn
(http://code.google.com/p/nn-c/)

(3) svn checkout http://nn-c.googlecode.com/svn/nn

(4) changed within the osgeo4w-msys-shell in the folder where the code was checked out

(5)
configure
make

=> it seems the code compiles

Usage: nnbathy -i <XYZ file>
               -o <XY file> | -n <nx>x<ny> [-c|-s] [-z <zoom>]
               [-x <xmin xmax>] [-xmin <xmin>] [-xmax <xmax>]
               [-y <ymin ymax>] [-ymin <ymin>] [-ymax <ymax>]
               [-v|-T <vertex id>|-V]
               [-D [<nx>x<ny>]]
               [-L <dist>]
               [-N]
               [-P alg={l|nn|ns}]
               [-W <min weight>]
               [-% [npoints]]
Options:
  -c               -- scale internally so that the enclosing minimal ellipse
                      turns into a circle (this produces results invariant to
                      affine transformations)
  -i <XYZ file>    -- three-column file with points to interpolate from
                      (use "-i stdin" or "-i -" for standard input)
  -n <nx>x<ny>     -- generate <nx>x<ny> output rectangular grid
  -o <XY file>     -- two-column file with points to interpolate in
                      (use "-o stdin" or "-o -" for standard input)
  -s               -- scale internally so that Xmax - Xmin = Ymax - Ymin
  -x <xmin> <xmax> -- set Xmin and Xmax for the output grid
  -xmin <xmin>     -- set Xmin for the output grid
  -xmax <xmax>     -- set Xmin for the output grid
  -y <ymin> <ymax> -- set Ymin and Ymax for the output grid
  -ymin <ymin>     -- set Ymin for the output grid
  -ymax <ymax>     -- set Ymin for the output grid
  -v               -- verbose / version
  -z <zoom>        -- zoom in (if <zoom> < 1) or out (<zoom> > 1) (activated
                      only when used in conjunction with -n)
  -D [<nx>x<ny>]   -- thin input data by averaging X, Y and Z values within
                      every cell of the rectangular <nx>x<ny> grid (size
                      optional with -n)
  -L <dist>        -- thin input data by averaging X, Y and Z values within
                      clusters of consequitive input points such that the
                      sum of distances between points within each cluster
                      does not exceed the specified maximum value
  -N               -- do not interpolate, only pre-process
  -P alg=<l|nn|ns> -- use the following algorithm:
                        l -- linear interpolation
                        nn -- Sibson interpolation (default)
                        ns -- Non-Sibsonian interpolation
  -T <vertex id>   -- verbose; in weights output print weights associated
                      with this vertex only
  -V               -- very verbose / version
  -W <min weight>  -- restricts extrapolation by assigning minimal allowed
                      weight for a vertex (normally "-1" or so; lower
                      values correspond to lower reliability; "0" means
                      no extrapolation)
  -% [npoints]     -- print percent of the work done to standard error;
                      npoints -- total number of points to be done (optional
                      with -n)
Description:
  `nnbathy' interpolates scalar 2D data in specified points using Natural
  Neighbours interpolation. The interpolated values are written to standard
  output.
 
  best regards
  Helmut

___________________________________________________________
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1747 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.osgeo.org/pipermail/grass-user/attachments/20110806/e98fe587/smime-0001.bin


More information about the grass-user mailing list