~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to raster/r.param.scale/main.c

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 *
13
13
 *****************************************************************************/
14
14
 
15
 
#define MAIN
16
 
 
17
15
#include <grass/glocale.h>
18
16
#include "param.h"
19
17
 
 
18
const char *rast_in_name;       /* Name of the raster file to process.  */
 
19
const char *rast_out_name;      /* Name of the raster output file.      */
 
20
int constrained;                /* Flag that forces quadtratic through  */
 
21
                                /* the central cell of the window.      */
 
22
int
 
23
  fd_in,                        /* File descriptor for input and        */
 
24
  fd_out,                       /* output raster files.                 */
 
25
  wsize,                        /* Size of local processing window.     */
 
26
  mparam;                       /* Morphometric parameter to calculate. */
 
27
 
 
28
 
 
29
double
 
30
  resoln,                       /* Planimetric resolution.              */
 
31
  exponent,                     /* Distance weighting exponent.         */
 
32
  zscale,                       /* Vertical scaling factor.             */
 
33
  slope_tol,                    /* Vertical tolerences for surface      */
 
34
  curve_tol;                    /* feature identification.              */
 
35
 
20
36
int main(int argc, char **argv)
21
37
{
22
 
 
23
 
    /*--------------------------------------------------------------------------*/
24
 
    /*                                 INITIALISE                               */
25
 
 
26
 
    /*--------------------------------------------------------------------------*/
27
 
 
28
 
 
29
 
 
30
 
    /*--------------------------------------------------------------------------*/
31
 
    /*                               GET INPUT FROM USER                        */
32
 
 
33
 
    /*--------------------------------------------------------------------------*/
34
 
 
35
38
    interface(argc, argv);
36
39
 
37
 
 
38
 
    /*--------------------------------------------------------------------------*/
39
 
    /*                        OPEN INPUT AND OUTPUT RASTER FILES                */
40
 
 
41
 
    /*--------------------------------------------------------------------------*/
42
 
 
43
40
    /* Make sure that the current projection is not lat/long */
44
41
    if ((G_projection() == PROJECTION_LL))
45
 
        G_fatal_error(_("Lat/Long location is not supported"));
 
42
        G_fatal_error(_("Lat/Long locations are not supported by this module"));
46
43
 
47
44
    open_files();
48
45
 
49
 
 
50
 
    /*--------------------------------------------------------------------------*/
51
 
    /*                       PROCESS SURFACE FOR FEATURE DETECTION              */
52
 
 
53
 
    /*--------------------------------------------------------------------------*/
54
 
 
55
46
    process();
56
47
 
57
 
    /*--------------------------------------------------------------------------*/
58
 
    /*                     CLOSE ALL OPENED FILES AND FREE MEMORY               */
59
 
 
60
 
    /*--------------------------------------------------------------------------*/
61
 
 
62
48
    close_down();
63
49
 
64
50
    if (mparam == FEATURE) {