~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to raster/r.surf.random/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 *               Midlands Regional Research Laboratory (ASSIST)
7
7
 * AUTHOR(S):    Markus Neteler <neteler itc.it> (original contributor)
8
8
 * PURPOSE:      produces a raster map layer of uniform random deviates
9
 
 * COPYRIGHT:    (C) 1999-2006 by the GRASS Development Team
 
9
 * COPYRIGHT:    (C) 1999-2006, 2010 by the GRASS Development Team
10
10
 *
11
11
 *               This program is free software under the GNU General Public
12
12
 *               License (>=v2). Read the file COPYING that comes with GRASS
41
41
                                   recalled using G_program_name(). */
42
42
 
43
43
    module = G_define_module();
44
 
    module->keywords = _("raster");
 
44
    module->keywords = _("raster, random");
45
45
    module->description =
46
 
        _("Produces a raster map layer of uniform random "
 
46
        _("Produces a raster map of uniform random "
47
47
          "deviates whose range can be expressed by the user.");
48
48
 
49
 
 
50
49
    out = G_define_standard_option(G_OPT_R_OUTPUT);
51
50
 
52
51
    min = G_define_option();
63
62
 
64
63
    i_flag = G_define_flag();
65
64
    i_flag->key = 'i';
66
 
    i_flag->description = _("Create an integer map");
 
65
    i_flag->description = _("Create an integer raster map");
67
66
 
68
67
    if (G_parser(argc, argv))
69
68
        exit(EXIT_FAILURE);     /* Returns a 0 if sucessful */
77
76
             i_flag->answer);
78
77
 
79
78
 
 
79
    G_done_msg(_("Raster map <%s> generated."), out->answer);
 
80
    
80
81
    exit(EXIT_SUCCESS);
81
82
}