Skip to content

Commit

Permalink
More usage verbs
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWessel committed Jun 20, 2011
1 parent b78e9da commit a57fd6c
Show file tree
Hide file tree
Showing 27 changed files with 140 additions and 140 deletions.
10 changes: 5 additions & 5 deletions src/dbase/grdraster_func.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------------
* $Id: grdraster_func.c,v 1.25 2011-06-20 02:02:39 guru Exp $
* $Id: grdraster_func.c,v 1.26 2011-06-20 22:15:09 guru Exp $
*
* Copyright (c) 1991-2011 by P. Wessel, W. H. F. Smith, R. Scharroo, and J. Luis
* See LICENSE.TXT file for copying and redistribution conditions.
Expand Down Expand Up @@ -636,18 +636,18 @@ GMT_LONG GMT_grdraster_usage (struct GMTAPI_CTRL *C, GMT_LONG level) {

if (level == GMTAPI_SYNOPSIS) return (EXIT_FAILURE);

GMT_message (GMT, "\t-R specifies the west, east, south, and north edges of the area.\n");
GMT_message (GMT, "\t-R Specify the west, east, south, and north edges of the area.\n");
GMT_message (GMT, "\t Use dd:mm format for regions given in degrees and minutes.\n");
GMT_message (GMT, "\t Append r if -R specifies the longitudes/latitudes of the lower left\n");
GMT_message (GMT, "\t and upper right corners of a rectangular area. If r is appended\n");
GMT_message (GMT, "\t you must also specify a projection with -J (set scale = 1).\n");
GMT_message (GMT, "\n\tOPTIONS:\n");
GMT_message (GMT, "\t-G sets the filename for output grid.\n");
GMT_message (GMT, "\t-I specifies the sampling interval of the grid [Default is raster spacing].\n");
GMT_message (GMT, "\t-G Set the filename for output grid.\n");
GMT_message (GMT, "\t-I Specify the sampling interval of the grid [Default is raster spacing].\n");
GMT_message (GMT, "\t Give -Idx or -Idx/dy if dy not equal dx. Append m for minutes.\n");
GMT_message (GMT, "\t (-I does not do any filtering; it just sub-samples the raster.)\n");
GMT_explain_options (GMT, "j");
GMT_message (GMT, "\t-T sets the filename for output ASCII table with xyz triplets.\n");
GMT_message (GMT, "\t-T Set the filename for output ASCII table with xyz triplets.\n");
GMT_message (GMT, "\t To get binary triplets, see -bo. Cannot be used with -G.\n");
GMT_explain_options (GMT, "VD3o.");

Expand Down
6 changes: 3 additions & 3 deletions src/gshhs/gshhs_func.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: gshhs_func.c,v 1.7 2011-05-14 00:04:06 guru Exp $
/* $Id: gshhs_func.c,v 1.8 2011-06-20 22:15:09 guru Exp $
*
* Copyright (c) 1996-2011 by P. Wessel, W. H. F. Smith, R. Scharroo, and J. Luis
* See LICENSE.TXT file for copying and redistribution conditions.
Expand Down Expand Up @@ -81,8 +81,8 @@ GMT_LONG GMT_gshhs_usage (struct GMTAPI_CTRL *C, GMT_LONG level)

if (level == GMTAPI_SYNOPSIS) return (EXIT_FAILURE);

GMT_message (GMT, "-L will only list header records (no data records will be written)\n");
GMT_message (GMT, "-I only output data for polygon number <id> [Default is all polygons]\n");
GMT_message (GMT, "-L Only list header records (no data records will be written)\n");
GMT_message (GMT, "-I Only output data for polygon number <id> [Default is all polygons]\n");
GMT_explain_options (GMT, "VD2o:.");

return (EXIT_FAILURE);
Expand Down
18 changes: 9 additions & 9 deletions src/imgsrc/img2grd_func.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: img2grd_func.c,v 1.21 2011-06-13 04:07:26 guru Exp $
/* $Id: img2grd_func.c,v 1.22 2011-06-20 22:15:09 guru Exp $
*
* Copyright (c) 1991-2011 by P. Wessel, W. H. F. Smith, R. Scharroo, and J. Luis
* See LICENSE.TXT file for copying and redistribution conditions.
Expand Down Expand Up @@ -132,29 +132,29 @@ GMT_LONG GMT_img2grd_usage (struct GMTAPI_CTRL *C, GMT_LONG level) {
if (level == GMTAPI_SYNOPSIS) return (EXIT_FAILURE);

GMT_message (GMT, "\t<world_image_filename> gives name of img file.\n");
GMT_message (GMT, "\t-G sets filename for the output grid file.\n");
GMT_message (GMT, "\t-R specifies the region in decimal degrees or degrees:minutes.\n");
GMT_message (GMT, "\t-G Set filename for the output grid file.\n");
GMT_message (GMT, "\t-R Specify the region in decimal degrees or degrees:minutes.\n");
GMT_message (GMT, "\n\tOPTIONS:\n");
GMT_message (GMT, "\t-C Refer Mercator coordinates to img source origin and requires -M\n");
GMT_message (GMT, "\t [Default sets lower left to 0,0].\n");
GMT_message (GMT, "\t-D[<minlat>/<maxlat>] input img file bottom and top latitudes [%.3f/%.3f].\n", GMT_IMG_MINLAT, GMT_IMG_MAXLAT);
GMT_message (GMT, "\t-D Set input img file bottom and top latitudes [%.3f/%.3f].\n", GMT_IMG_MINLAT, GMT_IMG_MAXLAT);
GMT_message (GMT, "\t If no latitudes are given it is taken to mean %.3f/%.3f.\n", GMT_IMG_MINLAT_80, GMT_IMG_MAXLAT_80);
GMT_message (GMT, "\t Without -D we automatically determine the extent from the file size.\n");
GMT_message (GMT, "\t-E Resample geographic grid to the specified -R. Cannot be used with -M .\n");
GMT_message (GMT, "\t (Default gives the exact -R of the Mercator grid).\n");
GMT_message (GMT, "\t-I<minutes> input img pixels are <min> minutes of longitude wide [2.0].\n");
GMT_message (GMT, "\t-I Set input img pixels to be <min> minutes of longitude wide [2.0].\n");
GMT_message (GMT, "\t Without -I we automatically determine the pixel size from the file size.\n");
GMT_message (GMT, "\t-M Write a Mercator grid [Default writes a geographic grid].\n");
GMT_message (GMT, "\t-N<navg> will ouput averages of input in navg by navg squares [no averaging].\n");
GMT_message (GMT, "\t-S<scale> will multiply img integer values by scale for output [1].\n");
GMT_message (GMT, "\t-N Output averages of input in navg by navg squares [no averaging].\n");
GMT_message (GMT, "\t-S Multiply img integer values by <scale> before output [1].\n");
GMT_message (GMT, "\t To set scale based on information encoded in filename, just give -S.\n");
GMT_message (GMT, "\t-T selects the img type format:\n");
GMT_message (GMT, "\t-T Select the img type format:\n");
GMT_message (GMT, "\t -T0 for obsolete img files w/ no constraint code, gets data.\n");
GMT_message (GMT, "\t -T1 for new img file w/ constraints coded, gets data at all points [Default].\n");
GMT_message (GMT, "\t -T2 for new img file w/ constraints coded, gets data only at constrained points, NaN elsewhere.\n");
GMT_message (GMT, "\t -T3 for new img file w/ constraints coded, gets 1 at constraints, 0 elsewhere.\n");
GMT_explain_options (GMT, "V");
GMT_message (GMT, "\t-W<maxlon> input img file runs from 0 to <maxlon> longitude [360.0].\n");
GMT_message (GMT, "\t-W Input img file runs from 0 to <maxlon> longitude [360.0].\n");
GMT_explain_options (GMT, "n.");

return (EXIT_FAILURE);
Expand Down
16 changes: 8 additions & 8 deletions src/meca/pscoupe_func.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------------
* $Id: pscoupe_func.c,v 1.15 2011-06-08 18:31:29 guru Exp $
* $Id: pscoupe_func.c,v 1.16 2011-06-20 22:15:10 guru Exp $
*
* Copyright (c) 1996-2011 by G. Patau
* Distributed under the GNU Public Licence
Expand Down Expand Up @@ -180,7 +180,7 @@ GMT_LONG GMT_pscoupe_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_fill_syntax (GMT, 'E', "Set color used for extensive parts. [default is white]\n");
GMT_fill_syntax (GMT, 'G', "Set color used for compressive parts. [default is black]\n");
GMT_explain_options (GMT, "K");
GMT_message (GMT, "\t-L draw line or symbol outline using the current pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-L Draw line or symbol outline using the current pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-M Same size for any magnitude. Size is given with -S.\n");
GMT_message (GMT, "\t-N Do Not skip/clip symbols that fall outside map border [Default will ignore those outside]\n");
GMT_explain_options (GMT, "OP");
Expand Down Expand Up @@ -222,13 +222,13 @@ GMT_LONG GMT_pscoupe_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_message (GMT, "\t n = 0 both nodal planes are plotted.\n");
GMT_message (GMT, "\t If moment tensor is required, nodal planes overlay moment tensor.\n");
GMT_explain_options (GMT, "UV");
GMT_message (GMT, "\t-W sets default pen attributes [%s]\n", GMT_putpen (GMT, GMT->current.setting.map_default_pen));
GMT_message (GMT, "\t-W Set pen attributes [%s]\n", GMT_putpen (GMT, GMT->current.setting.map_default_pen));
GMT_message (GMT, "\t-Z Use cpt-file to assign colors based on depth-value in 3rd column\n");
GMT_message (GMT, "\t-a plots axis. Default symbols are circles.\n");
GMT_message (GMT, "\t-p draws P_symbol outline using the current pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-t draws T_symbol outline using the current pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-g Sets color used for P_symbol. [default is compressive parts color]\n");
GMT_message (GMT, "\t-e Sets color used for T_symbol. [default is extensive parts color]\n");
GMT_message (GMT, "\t-a Plot axis. Default symbols are circles.\n");
GMT_message (GMT, "\t-p Draw P_symbol outline using the current pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-t Draw T_symbol outline using the current pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-g Set color used for P_symbol. [default is compressive parts color]\n");
GMT_message (GMT, "\t-e Set color used for T_symbol. [default is extensive parts color]\n");
GMT_explain_options (GMT, "Xchi:.");

return (EXIT_FAILURE);
Expand Down
24 changes: 12 additions & 12 deletions src/meca/psmeca_func.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------------
* $Id: psmeca_func.c,v 1.13 2011-06-08 18:31:29 guru Exp $
* $Id: psmeca_func.c,v 1.14 2011-06-20 22:15:10 guru Exp $
*
* Copyright (c) 1996-2011 by G. Patau
* Distributed under the GNU Public Licence
Expand Down Expand Up @@ -186,16 +186,16 @@ GMT_LONG GMT_psmeca_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_message (GMT, "\t Default pen attributes is default pen.\n");
GMT_message (GMT, "\t A line is plotted between both positions.\n");
GMT_message (GMT, "\t A small circle is plotted at the initial location. Add P<pointsize value> to change the size of the circle.\n");
GMT_message (GMT, "\t-Ddepmin/depmax Plot events between depmin and depmax deep.\n");
GMT_message (GMT, "\t-D Plot events between <depmin> and <depmax> deep.\n");
GMT_message (GMT, "\t-E Set color used for extensive parts. [default is white]\n");
GMT_message (GMT, "\t-G Set color used for compressive parts. [default is black]\n");
GMT_message (GMT, "\t <r/g/b> (each 0-255) for color or <gray> (0-255) for gray-shade [0].\n");
GMT_explain_options (GMT, "K");
GMT_message (GMT, "\t-L draw line or symbol outline using the default pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-L Draw line or symbol outline using the default pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-M Same size for any magnitude. Size is given with -S.\n");
GMT_message (GMT, "\t-N Do Not skip/clip symbols that fall outside map border [Default will ignore those outside]\n");
GMT_explain_options (GMT, "OP");
GMT_message (GMT, "\t-r draw a box around text.\n");
GMT_message (GMT, "\t-r Draw a box around text.\n");
GMT_message (GMT, "\t-S Select format type and symbol size (in %s).\n", GMT->session.unit_name[GMT->current.setting.proj_length_unit]);
GMT_message (GMT, "\t Choose format between\n");
GMT_message (GMT, "\t (c) Focal mechanisms in Harvard CMT convention\n");
Expand Down Expand Up @@ -227,20 +227,20 @@ GMT_LONG GMT_psmeca_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_message (GMT, "\t fontsize < 0 : no label written;\n");
GMT_message (GMT, "\t offset is from the limit of the beach ball.\n");
GMT_message (GMT, "\t By default label is above the beach ball. Add u to plot it under.\n");
GMT_message (GMT, "\t-Tn[/<pen>] draw nodal planes and circumference only to provide a transparent beach ball using the default pen (see -W) or sets pen attribute. \n");
GMT_message (GMT, "\t-Tn[/<pen>] Draw nodal planes and circumference only to provide a transparent beach ball using the default pen (see -W) or sets pen attribute. \n");
GMT_message (GMT, "\t n = 1 the only first nodal plane is plotted\n");
GMT_message (GMT, "\t n = 2 the only second nodal plane is plotted\n");
GMT_message (GMT, "\t n = 0 both nodal planes are plotted.\n");
GMT_message (GMT, "\t If moment tensor is required, nodal planes overlay moment tensor.\n");
GMT_message (GMT, "\t-z overlays zero trace moment tensor.\n");
GMT_message (GMT, "\t-z Overlay zero trace moment tensor.\n");
GMT_explain_options (GMT, "UV");
GMT_message (GMT, "\t-W sets default pen attributes [%s]\n", GMT_putpen (GMT, GMT->current.setting.map_default_pen));
GMT_message (GMT, "\t-W Set pen attributes [%s]\n", GMT_putpen (GMT, GMT->current.setting.map_default_pen));
GMT_message (GMT, "\t-Z Use cpt-file to assign colors based on depth-value in 3rd column\n");
GMT_message (GMT, "\t-a plots axis. Default symbols are circles.\n");
GMT_message (GMT, "\t-p draws P_symbol outline using the default pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-t draws T_symbol outline using the default pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-g Sets color used for P_symbol. [default is compressive parts color]\n");
GMT_message (GMT, "\t-e Sets color used for T_symbol. [default is extensive parts color]\n");
GMT_message (GMT, "\t-a Plot axis. Default symbols are circles.\n");
GMT_message (GMT, "\t-p Draw P_symbol outline using the default pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-t Draw T_symbol outline using the default pen (see -W) or sets pen attribute for outline.\n");
GMT_message (GMT, "\t-g Set color used for P_symbol. [default is compressive parts color]\n");
GMT_message (GMT, "\t-e Set color used for T_symbol. [default is extensive parts color]\n");
GMT_message (GMT, "\t-o Use psvelomeca format (Without depth in third column)\n");
GMT_explain_options (GMT, "Xchi:.");

Expand Down
10 changes: 5 additions & 5 deletions src/meca/pspolar_func.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------------
* $Id: pspolar_func.c,v 1.12 2011-06-09 18:04:29 remko Exp $
* $Id: pspolar_func.c,v 1.13 2011-06-20 22:15:10 guru Exp $
*
* Copyright (c) 1996-2011 by G. Patau
* Distributed under the GNU Public Licence
Expand Down Expand Up @@ -138,7 +138,7 @@ GMT_LONG GMT_pspolar_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_explain_options (GMT, "jR");
GMT_message (GMT, "\t-D Set longitude/latitude\n");
GMT_message (GMT, "\t-M Set size of beach ball in %s\n", GMT->session.unit_name[GMT->current.setting.proj_length_unit]);
GMT_message (GMT, "\t-S to select symbol type and symbol size (in %s). Choose between\n", GMT->session.unit_name[GMT->current.setting.proj_length_unit]);
GMT_message (GMT, "\t-S Select symbol type and symbol size (in %s). Choose between\n", GMT->session.unit_name[GMT->current.setting.proj_length_unit]);
GMT_message (GMT, "\t st(a)r, (c)ircle, (d)iamond, (h)exagon, (i)nvtriangle\n");
GMT_message (GMT, "\t (p)oint, (s)quare, (t)riangle, (x)cross\n");
GMT_message (GMT, "\n\tOPTIONS:\n");
Expand Down Expand Up @@ -169,7 +169,7 @@ GMT_LONG GMT_pspolar_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_message (GMT, "\t-N Do Not skip/clip symbols that fall outside map border\n");
GMT_message (GMT, "\t [Default will ignore those outside]\n");
GMT_explain_options (GMT, "OP");
GMT_message (GMT, "\t-s to plot S polarity azimuth.\n");
GMT_message (GMT, "\t-s Plot S polarity azimuth.\n");
GMT_message (GMT, "\t Azimuth of S polarity is in last column.\n");
GMT_message (GMT, "\t It may be a vector (V option) or a segment. Give half-size in cm.\n");
GMT_message (GMT, "\t L option is for outline\n");
Expand All @@ -179,9 +179,9 @@ GMT_LONG GMT_pspolar_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_message (GMT, "\t-T[<info about labal printing>] to write station code.\n");
GMT_message (GMT, "\t <angle/form/justify/fontsize in points>\n");
GMT_message (GMT, "\t Default is 0.0/0/5/12\n");
GMT_message (GMT, "\t-t sets pen attributes to write station codes [default is current pen]\n");
GMT_message (GMT, "\t-t Set pen attributes to write station codes [default is current pen]\n");
GMT_explain_options (GMT, "UV");
GMT_message (GMT, "\t-W sets default pen attributes [%s]\n", GMT_putpen (GMT, GMT->current.setting.map_default_pen));
GMT_message (GMT, "\t-W Set pen attributes [%s]\n", GMT_putpen (GMT, GMT->current.setting.map_default_pen));
GMT_explain_options (GMT, "Xchi.");

return (EXIT_FAILURE);
Expand Down
8 changes: 4 additions & 4 deletions src/meca/psvelo_func.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------------
* $Id: psvelo_func.c,v 1.10 2011-06-08 18:31:29 guru Exp $
* $Id: psvelo_func.c,v 1.11 2011-06-20 22:15:10 guru Exp $
*
* Copyright (c) 1996-2011 by G. Patau
* Distributed under the GNU Public Licence
Expand Down Expand Up @@ -137,17 +137,17 @@ GMT_LONG GMT_psvelo_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_message (GMT, "\t 1) <r/g/b> (each 0-255) for color or <gray> (0-255) for gray-shade [0].\n");
GMT_message (GMT, "\t 2) p[or P]<iconsize>/<pattern> for predefined patterns (0-31).\n");
GMT_explain_options (GMT, "K");
GMT_message (GMT, "\t-L draw line or symbol outline using the current pen (see -W).\n");
GMT_message (GMT, "\t-L Draw line or symbol outline using the current pen (see -W).\n");
GMT_message (GMT, "\t-N Do Not skip/clip symbols that fall outside map border [Default will ignore those outside]\n");
GMT_explain_options (GMT, "OP");
GMT_message (GMT, "\t-S to select symbol type and scale. Choose between\n");
GMT_message (GMT, "\t-S Select symbol type and scale. Choose between\n");
GMT_message (GMT, "\t (e) Velocity ellipses: in X,Y,Vx,Vy,SigX,SigY,CorXY,name format \n");
GMT_message (GMT, "\t (r) Velocity ellipses: in X,Y,Vx,Vy,a,b,theta,name format \n");
GMT_message (GMT, "\t (n) Anisotropy : in X,Y,Vx,Vy \n");
GMT_message (GMT, "\t (w) Rotational wedges: in X,Y,Spin,Spinsig \n");
GMT_message (GMT, "\t (x) Strain crosses : in X,Y,Eps1,Eps2,Theta \n");
GMT_explain_options (GMT, "UV");
GMT_message (GMT, "\t-W sets default pen attributes [%s]\n", GMT_putpen (GMT, GMT->current.setting.map_default_pen));
GMT_message (GMT, "\t-W Set pen attributes [%s]\n", GMT_putpen (GMT, GMT->current.setting.map_default_pen));
GMT_explain_options (GMT, "Xchi:.");

return (EXIT_FAILURE);
Expand Down
4 changes: 2 additions & 2 deletions src/mgd77/mgd77convert_func.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*--------------------------------------------------------------------
* $Id: mgd77convert_func.c,v 1.9 2011-06-11 14:54:18 jluis Exp $
* $Id: mgd77convert_func.c,v 1.10 2011-06-20 22:15:10 guru Exp $
*
* Copyright (c) 2005-2011 by P. Wessel
* See README file for copying and redistribution conditions.
Expand Down Expand Up @@ -78,7 +78,7 @@ GMT_LONG GMT_mgd77convert_usage (struct GMTAPI_CTRL *C, GMT_LONG level)
GMT_message (GMT, "\t-T Convert to a file that is either (a) MGD77 ASCII, (c) MGD77+ netCDF, or (t) plain table\n");
GMT_message (GMT, "\t By default we will refuse to overwrite existing files. Prepend + to override this policy.\n");
GMT_message (GMT, "\tOPTIONS:\n\n");
GMT_message (GMT, "\t-D Selects high-resolution, 4-byte storage for mag, diur, faa, eot, and msd with precision\n");
GMT_message (GMT, "\t-D Select high-resolution, 4-byte storage for mag, diur, faa, eot, and msd with precision\n");
GMT_message (GMT, "\t of 10 fTesla, 1 nGal, 0.01 mm [Default is 2-byte with 0.1 nTesla, 0.1 mGal, m precision]\n");
GMT_message (GMT, "\t-L Log level and destination setting for verification reporting. Append a combination\n");
GMT_message (GMT, "\t of w for warnings, e for errors, and + to send log to stdout [Default is GMT->session.std[GMT_ERR]])\n");
Expand Down
Loading

0 comments on commit a57fd6c

Please sign in to comment.