git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63872 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -20,9 +20,9 @@
#%module
#% description: Example GUI application which displays raster map and further information
-#% keywords: example
-#% keywords: GUI
-#% keywords: raster
+#% keyword: example
+#% keyword: GUI
+#% keyword: raster
#%end
#%option G_OPT_R_INPUT
#% description: Name of raster map to load
@@ -26,7 +26,9 @@
#% label: Finds the distance between two or more points.
#% description: If the projection is latitude-longitude, this distance is measured along the geodesic.
-#% keywords: miscellaneous, distance, measure
+#% keyword: miscellaneous
+#% keyword: distance
+#% keyword: measure
#%option
#% key: coord
@@ -392,7 +392,8 @@ use strict;
#% description: g.parser test script (perl)
-#% keywords: keyword1, keyword2
+#% keyword: keyword1
+#% keyword: keyword2
#%flag
#% key: f
@@ -84,7 +84,8 @@ void parse_module(struct context *ctx, const char *cmd, const char *arg)
return;
}
- if (G_strcasecmp(cmd, "keywords") == 0) {
+ if (G_strcasecmp(cmd, "keyword") == 0 || G_strcasecmp(cmd, "keywords") == 0) {
+ /* (still) accept 'keywords' for backward compatibility */
G_add_keyword(translate(xstrdup(arg)));
@@ -1,14 +1,15 @@
#!/usr/bin/perl -w
use strict;
-# g.parser demo script
+# g.parser demo script for perl programing
#%Module
-#% description: g.parser test script (perl)
+#% description: g.parser test script (perl)
#%End
-#% key: f
-#% description: A flag
+#% key: f
+#% description: A flag
#% key: raster
@@ -28,7 +29,7 @@ use strict;
#% key: option1
#% type: string
#% description: An option
-#% required : yes
+#% required : no
if ( !$ENV{'GISBASE'} ) {
@@ -2,32 +2,34 @@
# g.parser demo script for python programing
-#%module
-#% description: g.parser test script (python)
-#%end
+#%Module
+#% description: g.parser test script (python)
+#%End
-#% key: raster
-#% type: string
-#% gisprompt: old,cell,raster
-#% description: Raster input map
+#% key: raster
+#% type: string
+#% gisprompt: old,cell,raster
+#% description: Raster input map
+#% required : yes
-#% key: vector
-#% gisprompt: old,vector,vector
-#% description: Vector input map
+#% key: vector
+#% gisprompt: old,vector,vector
+#% description: Vector input map
-#% key: option1
-#% description: An option
-#% required : no
+#% key: option1
+#% description: An option
import os
#!/bin/sh
+# g.parser demo script for shell programing
-#% description: g.parser test script
+#% description: g.parser test script (shell)
@@ -28,7 +29,7 @@
if [ -z "$GISBASE" ] ; then
@@ -52,4 +53,4 @@ echo "Value of GIS_OPT_option1: '$GIS_OPT_option1'"
echo "Value of GIS_OPT_raster: '$GIS_OPT_raster'"
echo "Value of GIS_OPT_vect: '$GIS_OPT_vector'"
-#add your code here
+#end of your code
@@ -17,8 +17,9 @@
#############################################################################
-#% description: Displays 3D raster map layer.
-#% keywords: display, raster3d
+#% description: Displays a 3D raster map layer.
+#% keyword: display
+#% keyword: raster3d
@@ -17,11 +17,11 @@
#% description: Downloads and displays data from WMS/WMTS/NASA OnEarth server.
-#% keywords: import
-#% keywords: WMS
-#% keywords: WMTS
-#% keywords: OnEarth
+#% keyword: import
+#% keyword: WMS
+#% keyword: WMTS
+#% keyword: OnEarth
@@ -21,10 +21,10 @@
#% description: Tool for animating a series of raster and vector maps or a space time raster or vector dataset.
-#% keywords: general
-#% keywords: display
-#% keywords: animation
+#% keyword: general
+#% keyword: animation
#%option G_OPT_R_INPUTS
@@ -20,10 +20,10 @@
#% description: Launches graphical attribute table manager.
-#% keywords: attribute table
-#% keywords: database
+#% keyword: attribute table
+#% keyword: database
#%option G_OPT_V_MAP
#% description: Georectifies a map and allows to manage Ground Control Points.
-#% keywords: georectification
-#% keywords: GCP
+#% keyword: georectification
+#% keyword: GCP
"""
#% label: Graphical Modeler.
#% description: Allows to interactively create, edit and manage models.
-#% keywords: graphical modeler
-#% keywords: workflow
+#% keyword: graphical modeler
+#% keyword: workflow
#%option G_OPT_F_INPUT
#% key: file
@@ -22,11 +22,11 @@
#% label: Tool for supervised classification of imagery data.
#% description: Generates spectral signatures for an image by allowing the user to outline regions of interest.
-#% keywords: classification
-#% keywords: supervised classification
-#% keywords: signatures
+#% keyword: classification
+#% keyword: supervised classification
+#% keyword: signatures
#% key: m
@@ -21,9 +21,9 @@
#% key: test
#% description: Interactively compares two maps by swiping a visibility bar.
#% key: first
#% description: Tool for creating hardcopy map outputs.
-#% keywords: printing
+#% keyword: printing
#% description: Configuration tool for r.li modules.
-#% keywords: landscape structure analysis
+#% keyword: landscape structure analysis
#% description: Allows to compare temporal datasets by displaying their temporal extents in a plot.
-#% keywords: temporal
+#% keyword: temporal
#%option G_OPT_STDS_INPUTS
#% required: no
@@ -62,7 +62,7 @@ void G__script(void)
if (st->module_info.description)
fprintf(fp, "#%% description: %s\n", st->module_info.description);
if (st->module_info.keywords) {
- fprintf(fp, "#%% keywords: ");
+ fprintf(fp, "#%% keyword: ");
G__print_keywords(fp, NULL);
fprintf(fp, "\n");
#% description: Prints a graph of the correlation between raster maps (in pairs).
-#% keywords: statistics
-#% keywords: diagram
-#% keywords: correlation
+#% keyword: statistics
+#% keyword: diagram
+#% keyword: correlation
#%option G_OPT_R_MAPS
@@ -15,8 +15,8 @@
#% description: Saves the contents of the active display monitor to a graphics file.
-#% keywords: export
+#% keyword: export
#%option G_OPT_F_OUTPUT
#% description: Name for output file
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+#
############################################################################
#
# MODULE: d.polar
@@ -19,9 +20,9 @@
-#% description: Draws polar diagram of angle map such as aspect or flow directions
+#% description: Draws polar diagram of angle map such as aspect or flow directions
#%option G_OPT_R_MAP
#% description: Name of raster angle map
#% description: Edits cell values in a raster map.
-#% keywords: editing
+#% keyword: editing
@@ -30,9 +30,9 @@
#% description: Displays a raster map and its legend on a graphics window
-#% keywords: cartography
-#% keywords: legend
+#% keyword: cartography
+#% keyword: legend
@@ -15,9 +15,9 @@
#% description: Redraws the content of currently selected monitor.
-#% keywords: graphics
-#% keywords: monitors
+#% keyword: graphics
+#% keyword: monitors
import sys
@@ -16,11 +16,11 @@
#% description: Drapes a color raster over an shaded relief or aspect map.
-#% keywords: elevation
-#% keywords: relief
-#% keywords: hillshade
-#% keywords: visualization
+#% keyword: elevation
+#% keyword: relief
+#% keyword: hillshade
+#% keyword: visualization
#% key: shade
#% description: Saves the contents of the active display monitor to a raster map.
#%option G_OPT_R_OUTPUT
@@ -18,11 +18,11 @@
#% description: Displays thematic vector map
-#% keywords: vector
-#% keywords: thematic
+#% keyword: vector
+#% keyword: thematic
#% description: Allows the user to interactively query raster map layers at user-selected locations.
#% key: map
#% description: Allows the user to interactively query vector map layers at user-selected locations.
#%option G_OPT_V_INPUTS
@@ -18,8 +18,8 @@
#% description: Drops a column from selected attribute table.
@@ -16,8 +16,8 @@
#% description: Drops an attribute table.
@@ -16,9 +16,9 @@
#% description: Imports attribute tables in various formats.
#%option G_OPT_F_BIN_INPUT
#% description: Exports attribute tables into various formats.
#%option G_OPT_V_INPUT
#% description: Test database driver, database must exist and set by db.connect.
@@ -18,9 +18,9 @@
#% description: Calculates univariate statistics on selected table column.
#%option G_OPT_DB_TABLE
#% key: table
@@ -19,9 +19,9 @@
#% label: Rebuilds or removes all locally installed GRASS Addons extensions.
#% description: By default only extensions built against different GIS Library are rebuilt.
-#% keywords: installation
-#% keywords: extensions
+#% keyword: installation
+#% keyword: extensions
#% key: operation
#% label: Maintains GRASS Addons extensions in local GRASS installation.
#% description: Downloads, installs extensions from GRASS Addons SVN repository into local GRASS installation or removes installed extensions.
#% description: Displays the manual pages of GRASS modules.
-#% keywords: manual
-#% keywords: help
+#% keyword: manual
+#% keyword: help
#% key: i
@@ -22,10 +22,10 @@
#% description: Performs auto-balancing of colors for RGB images.
-#% keywords: imagery
-#% keywords: RGB
-#% keywords: satellite
-#% keywords: colors
+#% keyword: imagery
+#% keyword: RGB
+#% keyword: satellite
+#% keyword: colors
#% key: red
@@ -24,9 +24,9 @@
#% description: Mosaics several images and extends colormap.
-#% keywords: geometry
-#% keywords: mosaicking
+#% keyword: geometry
+#% keyword: mosaicking
@@ -31,8 +31,8 @@
#% description: Imports SPOT VGT NDVI data into a raster map.
#% key: a
#% Module
#% description: Calculates Optimum-Index-Factor table for spectral bands
-#% keywords: multispectral
+#% keyword: multispectral
#% End
#% option G_OPT_R_INPUTS
#% end
@@ -36,48 +36,48 @@
-#% description: Image fusion algorithms to sharpen multispectral with high-res panchromatic channels
-#% keywords: fusion
-#% keywords: sharpen
-#% keywords: Brovey
-#% keywords: IHS
-#% keywords: HIS
-#% keywords: PCA
-#% overwrite: yes
+#% description: Image fusion algorithms to sharpen multispectral with high-res panchromatic channels
+#% keyword: fusion
+#% keyword: sharpen
+#% keyword: Brovey
+#% keyword: IHS
+#% keyword: HIS
+#% keyword: PCA
+#% overwrite: yes
-#% key: red
-#% description: Name of raster map to be used for <red>
+#% key: red
+#% description: Name of raster map to be used for <red>
-#% key: green
-#% description: Name of raster map to be used for <green>
+#% key: green
+#% description: Name of raster map to be used for <green>
-#% key: blue
-#% description: Name of raster map to be used for <blue>
+#% key: blue
+#% description: Name of raster map to be used for <blue>
-#% option G_OPT_R_INPUT
-#% key: pan
-#% description: Name of raster map to be used for high resolution panchromatic channel
+#% option G_OPT_R_INPUT
+#% key: pan
+#% description: Name of raster map to be used for high resolution panchromatic channel
#%option G_OPT_R_BASENAME_OUTPUT
-#% key: method
-#% description: Method for pan sharpening
-#% options: brovey,ihs,pca
-#% answer: ihs
-#% required: yes
+#% key: method
+#% description: Method for pan sharpening
+#% options: brovey,ihs,pca
+#% answer: ihs
+#% required: yes
-#% key: s
-#% description: Serial processing rather than parallel processing
+#% key: s
+#% description: Serial processing rather than parallel processing
-#% key: l
-#% description: Rebalance blue channel for LANDSAT
+#% key: l
+#% description: Rebalance blue channel for LANDSAT
@@ -27,10 +27,10 @@
#% description: Displays spectral response at user specified locations in group or images.
-#% keywords: querying
+#% keyword: querying
#%option G_OPT_I_GROUP
#% required : no
@@ -46,11 +46,11 @@
#% description: Performs Tasseled Cap (Kauth Thomas) transformation.
-#% keywords: transformation
-#% keywords: Landsat
-#% keywords: MODIS
-#% keywords: Tasseled Cap transformation
+#% keyword: transformation
+#% keyword: Landsat
+#% keyword: MODIS
+#% keyword: Tasseled Cap transformation
#% description: For Landsat4-7: bands 1, 2, 3, 4, 5, 7; for Landsat8: bands 2, 3, 4, 5, 6, 7; for MODIS: bands 1, 2, 3, 4, 5, 6, 7
@@ -26,8 +26,8 @@
#% description: Converts coordinates from one projection to another (cs2cs frontend).
-#% keywords: miscellaneous
-#% keywords: projection
+#% keyword: projection
#%option G_OPT_M_COORDS
#% description: Input coordinates to reproject
#% description: Blends color components of two raster maps by a given ratio.
-#% keywords: composite
+#% keyword: composite
@@ -17,8 +17,8 @@
#% label: Creates a raster map showing buffer zones surrounding cells that contain non-NULL category values.
#% description: This is the low-memory alternative to the classic r.buffer module.
-#% keywords: buffer
+#% keyword: buffer
#% key: z
#% description: Sets color rules based on stddev from a raster map's mean value.
-#% keywords: color table
+#% keyword: color table
#% option G_OPT_R_MAP
@@ -25,9 +25,9 @@
#% description: Fills no-data areas in raster maps using spline interpolation.
-#% keywords: interpolation
+#% keyword: interpolation
@@ -16,7 +16,7 @@
#% description: Generates a raster map layer with contiguous areas grown by one cell.
# MODULE: r_in_aster.py
@@ -21,32 +22,32 @@
# gdal compiled with HDF4 support
-#% description: Georeference, rectify, and import Terra-ASTER imagery and relative DEMs using gdalwarp.
-#% keywords: Terra-ASTER
+#% description: Georeference, rectify, and import Terra-ASTER imagery and relative DEMs using gdalwarp.
+#% keyword: Terra-ASTER
-#% description: Name of input ASTER image
+#% description: Name of input ASTER image
-#% key: proctype
-#% description: ASTER imagery processing type (Level 1A, Level 1B, or relative DEM)
-#% options: L1A,L1B,DEM
-#% answer: L1B
+#% key: proctype
+#% description: ASTER imagery processing type (Level 1A, Level 1B, or relative DEM)
+#% options: L1A,L1B,DEM
+#% answer: L1B
-#% key: band
-#% description: List L1A or L1B band to translate (1,2,3n,...), or enter 'all' to translate all bands
-#% answer: all
+#% key: band
+#% description: List L1A or L1B band to translate (1,2,3n,...), or enter 'all' to translate all bands
+#% answer: all
-#% description: Base name for output raster map (band number will be appended to base name)
+#% description: Base name for output raster map (band number will be appended to base name)
@@ -1,7 +1,12 @@
-
-#import of SRTM hgt files into GRASS
-# written by Markus Neteler 11/2003 neteler AT itc it
+############################################################################
+# MODULE: r_in_aster.py
+# AUTHOR(S): Markus Neteler 11/2003 neteler AT itc it
+# Hamish Bowman
+# Glynn Clements
+# PURPOSE: import of SRTM hgt files into GRASS
# COPYRIGHT: (C) 2004, 2006 by the GRASS Development Team
@@ -44,9 +49,9 @@
#########################
-#% description: Imports SRTM HGT files into raster map.
+#% description: Imports SRTM HGT files into raster map.
#% description: Name of SRTM input tile (file without .hgt.zip extension)
@@ -56,8 +61,8 @@
-#% key: 1
-#% description: Input is a 1-arcsec tile (default: 3-arcsec)
+#% key: 1
+#% description: Input is a 1-arcsec tile (default: 3-arcsec)
tmpl1sec = """BYTEORDER M
@@ -14,9 +14,9 @@ This program is free software under the GNU General Public License
#% description: Downloads and imports data from WMS/WMTS/NASA OnEarth server.
-#% keywords: OGC web services
+#% keyword: OGC web services
#% description: Creates a MASK for limiting raster operation.
-#% keywords: mask
+#% keyword: mask
#% overwrite: yes
@@ -18,10 +18,10 @@
#% description: Exports a raster map to a text file as x,y,z values based on cell centers.
-#% keywords: ASCII
-#% keywords: conversion
+#% keyword: ASCII
+#% keyword: conversion
#% multiple: yes
#% description: Packs up a raster map and support files for copying.
-#% keywords: copying
+#% keyword: copying
#% description: Name of raster map to pack up
#% description: Creates raster plane map given dip (inclination), aspect (azimuth) and one point.
#% description: Reclasses a raster map greater or less than user specified area size (in hectares).
-#% keywords: aggregation
+#% keyword: aggregation
#% description: Splits a raster map into red, green and blue maps.
@@ -37,8 +37,8 @@
#% description: Produces tilings of the source projection for use in the destination region and projection.
-#% keywords: tiling
+#% keyword: tiling
#% key: g
#% description: Unpacks a raster map packed with r.pack.
#% description: Name of input pack file
#% description: Create a 3D raster map from an assemblage of many coordinates using univariate statistics
-#% keywords: raster3d
-#% keywords: voxel
-#% keywords: LIDAR
+#% keyword: voxel
+#% keyword: LIDAR
#%Flag
#% key: s
@@ -14,8 +14,8 @@
#% description: Rebuilds topology on all vector maps in the current mapset.
-#% keywords: topology
+#% keyword: topology
@@ -13,9 +13,9 @@
#% description: Adds missing centroids to closed boundaries.
-#% keywords: centroid
-#% keywords: area
+#% keyword: centroid
+#% keyword: area
#% description: Converts all older versions of GRASS vector maps in current mapset to current format.
#% description: Adds one or more columns to the attribute table connected to a given vector map.
@@ -17,9 +17,9 @@
#% description: Creates and connects a new attribute table to a given layer of an existing vector map.
#% description: Drops a column from the attribute table connected to a given vector map.
#% description: Removes a vector feature from a vector map through attribute selection.
#% description: Removes existing attribute table of a vector map.
#% description: Joins a database table to a vector map table.
#% description: Reconnects attribute tables for all vector maps from the current mapset to a new database.
#% key: c
@@ -22,9 +22,9 @@
#% description: Renames a column in the attribute table connected to a given vector map.
#% description: Calculates univariate statistics on selected table column for a GRASS vector map.
#% required: yes
#% description: Updates a column in the attribute table connected to a vector map.
@@ -17,10 +17,10 @@
#% description: Dissolves boundaries between adjacent areas sharing a common category number or attribute.
-#% keywords: dissolve
-#% keywords: line
+#% keyword: dissolve
+#% keyword: line
@@ -23,8 +23,8 @@
#% description: Imports E00 file into a vector map.
#% description: Name of input E00 file
#% description: Imports geonames.org country files into a vector points map.
-#% keywords: gazetteer
+#% keyword: gazetteer
#% description: Name of uncompressed geonames file (with .txt extension)
@@ -34,30 +34,30 @@
-#% description: Import waypoints, routes, and tracks from a GPS receiver or GPS download file into a vector map.
-#% keywords: GPS
+#% description: Import waypoints, routes, and tracks from a GPS receiver or GPS download file into a vector map.
+#% keyword: GPS
-#% key: w
-#% description: Import as waypoints
+#% key: w
+#% description: Import as waypoints
-#% key: r
-#% description: Import as routes
+#% key: r
+#% description: Import as routes
-#% key: t
-#% description: Import as tracks
+#% key: t
+#% description: Import as tracks
-#% key: p
-#% description: Force vertices of track or route data as points
+#% key: p
+#% description: Force vertices of track or route data as points
-#% key: k
-#% description: Do not attempt projection transform from WGS84
+#% key: k
+#% description: Do not attempt projection transform from WGS84
#% description: Device or file used to import data
#% description: Imports ASCII x,y[,z] coordinates as a series of lines.
@@ -25,8 +25,8 @@
#% description: Imports Mapgen or Matlab-ASCII vector maps into GRASS.
#% description: Imports GetFeature from a WFS server.
#% key: url
@@ -19,10 +19,10 @@ for details.
#% description: Performs ordinary or block kriging for vector maps.
-#% keywords: kriging
+#% keyword: kriging
@@ -33,27 +33,27 @@
-#% description: Exports a vector map to a GPS receiver or file format supported by GPSBabel.
+#% description: Exports a vector map to a GPS receiver or file format supported by GPSBabel.
-#% description: Export as waypoints
+#% description: Export as waypoints
-#% description: Export as routes
+#% description: Export as routes
-#% description: Export as tracks
+#% description: Export as tracks
############ TODO:
##%flag
-##% key: z
-##% description: Export altitude from 3D vector's z-coordinate
+##% key: z
+##% description: Export altitude from 3D vector's z-coordinate
##%end
############
#% description: Packs up a vector map and support files for copying.
#% label: Name of vector map to pack up
@@ -19,11 +19,11 @@
#% description: Calculates univariate statistics from a raster map based on a vector map and uploads statistics to new attribute columns.
-#% keywords: univariate statistics
-#% keywords: zonal statistics
+#% keyword: univariate statistics
+#% keyword: zonal statistics
#% description: Reports geometry statistics for vector maps.
#% description: Converts vector polygons or points to lines.
-#% keywords: point
+#% keyword: point
#% description: Unpacks a vector map packed with v.pack.
@@ -15,12 +15,12 @@
#% description: Uploads vector values at positions of vector points to the table.
-#% keywords: sampling
-#% keywords: position
+#% keyword: sampling
+#% keyword: position
#% description: Views BMP images from the PNG driver.
#% key: image
@@ -20,8 +20,8 @@
#% description: Creates a space time dataset.
-#% keywords: map management
-#% keywords: create
+#% keyword: map management
+#% keyword: create
#%option G_OPT_STDS_OUTPUT
#% description: Lists information about space time datasets and maps.
-#% keywords: metadata
-#% keywords: extent
+#% keyword: metadata
+#% keyword: extent
#%option G_OPT_STDS_INPUT
#% description: Lists space time datasets and maps registered in the temporal database.
-#% keywords: list
+#% keyword: list