Changeset 38463 for trunk/Ohana/src/opihi/cmd.data
- Timestamp:
- Jun 12, 2015, 10:26:46 PM (11 years ago)
- Location:
- trunk/Ohana/src/opihi/cmd.data
- Files:
-
- 3 edited
- 1 copied
-
Makefile (modified) (1 diff)
-
bisection.c (copied) (copied from branches/eam_branches/ipp-20150419/Ohana/src/opihi/cmd.data/bisection.c )
-
init.c (modified) (3 diffs)
-
tvcolors.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/Makefile
r38234 r38463 25 25 $(SRC)/book.$(ARCH).o \ 26 26 $(SRC)/book_commands.$(ARCH).o \ 27 $(SRC)/bisection.$(ARCH).o \ 27 28 $(SRC)/cast.$(ARCH).o \ 28 29 $(SRC)/center.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.data/init.c
r38234 r38463 9 9 int box PROTO((int, char **)); 10 10 int book_command PROTO((int, char **)); 11 int bisection PROTO((int, char **)); 11 12 int center PROTO((int, char **)); 12 int parity PROTO((int, char **));13 13 int cast PROTO((int, char **)); 14 14 int circstats PROTO((int, char **)); … … 90 90 int plot PROTO((int, char **)); 91 91 int dot PROTO((int, char **)); 92 int parity PROTO((int, char **)); 92 93 int point PROTO((int, char **)); 93 94 int ps PROTO((int, char **)); … … 176 177 {1, "applyfit2d", applyfit2d, "apply 2-d fit to new vector"}, 177 178 {1, "applyfit3d", applyfit3d, "apply 3-d fit to new vector"}, 179 {1, "bisection", bisection, "use bisection to find threshold in vector"}, 178 180 {1, "book", book_command, "commands to manipulate book/page/word data"}, 179 181 {1, "box", box, "draw a box on the plot"}, -
trunk/Ohana/src/opihi/cmd.data/tvcolors.c
r31667 r38463 16 16 FREE (name); 17 17 18 int SetNAN = FALSE; 19 int red, green, blue; 20 if ((N = get_argument (argc, argv, "-nan"))) { 21 if (N > argc - 4) { 22 gprint (GP_ERR, "ERROR: -nan (red) (green) (blue) does not have enough arguments\n"); 23 return FALSE; 24 } 25 remove_argument (N, &argc, argv); 26 red = strtol (argv[N], NULL, 0); 27 remove_argument (N, &argc, argv); 28 green = strtol (argv[N], NULL, 0); 29 remove_argument (N, &argc, argv); 30 blue = strtol (argv[N], NULL, 0); 31 remove_argument (N, &argc, argv); 32 SetNAN = TRUE; 33 } 34 18 35 // use the currently-set zero,range values if not supplied 19 if ( argc != 2) {20 gprint (GP_ERR, "USAGE: tvcolors (colormap) \n");36 if (!SetNAN && (argc != 2)) { 37 gprint (GP_ERR, "USAGE: tvcolors (colormap) [-nan red green blue]\n"); 21 38 gprint (GP_ERR, " colormap options : greyscale, -greyscale, rainbow, heat, fullcolor, ruffcolor (also grayscale, -grayscale)\n"); 22 39 return (FALSE); 23 40 } 24 41 25 KiiSetColormap (kapa, argv[1]); 42 if (SetNAN) { 43 KiiSetNanColor (kapa, red, green, blue); 44 } 45 if (argc == 2) { 46 KiiSetColormap (kapa, argv[1]); 47 } 26 48 return (TRUE); 27 49 }
Note:
See TracChangeset
for help on using the changeset viewer.
