Changeset 41341 for trunk/Ohana/src/opihi/cmd.astro/cgrid.c
- Timestamp:
- Apr 16, 2020, 2:04:27 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.astro/cgrid.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.astro/cgrid.c
r41340 r41341 83 83 Graphdata graphmode; 84 84 85 if ((N = get_argument (argc, argv, "-h"))) goto usage; 86 if ((N = get_argument (argc, argv, "--help"))) goto usage; 87 85 88 RAbyHour = FALSE; 86 89 if ((N = get_argument (argc, argv, "-ra-by-hour"))) { … … 115 118 } 116 119 117 int JustifyRA = 5;118 double JustifyDEC = 5;120 int JustifyRA = 8; 121 int JustifyDEC = 2; 119 122 if ((N = get_argument (argc, argv, "-justify-ra"))) { 120 123 remove_argument (N, &argc, argv); … … 151 154 if (!style_args (&graphmode, &argc, argv, &kapa)) return FALSE; 152 155 153 if (argc != 1) { 154 gprint (GP_ERR, "USAGE: cgrid [style] [-ra-by-hour] [-labels]\n"); 155 return (FALSE); 156 } 156 if (argc != 1) goto usage; 157 157 158 158 /* are we plotting one of the poles? */ … … 182 182 } 183 183 } 184 184 185 185 186 /* set spacings for DEC */ … … 345 346 return (TRUE); 346 347 348 usage: 349 350 gprint (GP_ERR, "USAGE: cgrid [style] [options]\n"); 351 gprint (GP_ERR, " options:\n"); 352 gprint (GP_ERR, " -h, --help: show this list\n"); 353 gprint (GP_ERR, " -ra-by-hour : RA grid lines will be space on rounded hour lines (default is degrees)\n"); 354 gprint (GP_ERR, " -labels : add RA & dec coordinates\n"); 355 gprint (GP_ERR, " -major-spacing : grid lines drawn at major tickmarks, not minor tickmarks\n"); 356 gprint (GP_ERR, " -ra-spacing : specify size of RA grid steps in degrees (ignores -ra-by-hour)\n"); 357 gprint (GP_ERR, " -dec-spacing : specify size of dec grid steps in degrees\n"); 358 gprint (GP_ERR, " -justify-ra : choose how RA labels are justified (see below)\n"); 359 gprint (GP_ERR, " -justify-dec : choose how dec labels are justified (see below)\n"); 360 gprint (GP_ERR, " -label-ra : RA coordinate of the Dec-line labels\n"); 361 gprint (GP_ERR, " -label-dec : Dec coordinate of the RA-line labels\n"); 362 gprint (GP_ERR, " -label-color : color for the labels (independent of grid lines)\n"); 363 gprint (GP_ERR, " text justification: text is justified horizontally and vertically based on the following numbers:\n"); 364 gprint (GP_ERR, " 6 7 8\n"); 365 gprint (GP_ERR, " 3 4 5\n"); 366 gprint (GP_ERR, " 0 1 2\n"); 367 return (FALSE); 347 368 } 369
Note:
See TracChangeset
for help on using the changeset viewer.
