Changeset 25757 for trunk/Ohana/src/opihi/cmd.data
- Timestamp:
- Oct 2, 2009, 3:15:42 PM (17 years ago)
- Location:
- trunk/Ohana/src/opihi/cmd.data
- Files:
-
- 4 edited
- 3 copied
-
Makefile (modified) (4 diffs)
-
init.c (modified) (4 diffs)
-
relocate.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.data/relocate.c )
-
subset.c (modified) (3 diffs)
-
tvcolors.c (modified) (1 diff)
-
vellipse.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.data/vellipse.c )
-
vgroup.c (copied) (copied from branches/eam_branches/20090715/Ohana/src/opihi/cmd.data/vgroup.c )
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/Makefile
r21508 r25757 97 97 $(SRC)/rebin.$(ARCH).o \ 98 98 $(SRC)/resize.$(ARCH).o \ 99 $(SRC)/relocate.$(ARCH).o \ 99 100 $(SRC)/roll.$(ARCH).o \ 100 101 $(SRC)/rotate.$(ARCH).o \ … … 110 111 $(SRC)/style.$(ARCH).o \ 111 112 $(SRC)/subraster.$(ARCH).o \ 112 $(SRC)/subset.$(ARCH).o \113 $(SRC)/subset.$(ARCH).o \ 113 114 $(SRC)/svd.$(ARCH).o \ 114 115 $(SRC)/swapbytes.$(ARCH).o \ … … 118 119 $(SRC)/tvcolors.$(ARCH).o \ 119 120 $(SRC)/tvcontour.$(ARCH).o \ 120 $(SRC)/tvgrid.$(ARCH).o \121 $(SRC)/tvgrid.$(ARCH).o \ 121 122 $(SRC)/uniq.$(ARCH).o \ 122 $(SRC)/unsign.$(ARCH).o \123 $(SRC)/unsign.$(ARCH).o \ 123 124 $(SRC)/vbin.$(ARCH).o \ 125 $(SRC)/vgroup.$(ARCH).o \ 124 126 $(SRC)/vclip.$(ARCH).o \ 125 $(SRC)/vgauss.$(ARCH).o \ 126 $(SRC)/vmaxwell.$(ARCH).o \ 127 $(SRC)/vgauss.$(ARCH).o \ 128 $(SRC)/vellipse.$(ARCH).o \ 129 $(SRC)/vmaxwell.$(ARCH).o \ 127 130 $(SRC)/vgrid.$(ARCH).o \ 128 131 $(SRC)/vload.$(ARCH).o \ … … 130 133 $(SRC)/vpop.$(ARCH).o \ 131 134 $(SRC)/vroll.$(ARCH).o \ 132 $(SRC)/vsmooth.$(ARCH).o \135 $(SRC)/vsmooth.$(ARCH).o \ 133 136 $(SRC)/vstats.$(ARCH).o \ 134 137 $(SRC)/wd.$(ARCH).o \ -
trunk/Ohana/src/opihi/cmd.data/init.c
r24219 r25757 85 85 int rebin PROTO((int, char **)); 86 86 int resize PROTO((int, char **)); 87 int relocate PROTO((int, char **)); 87 88 int roll PROTO((int, char **)); 88 89 int rotate PROTO((int, char **)); … … 110 111 int unsign PROTO((int, char **)); 111 112 int vbin PROTO((int, char **)); 113 int vgroup PROTO((int, char **)); 112 114 int vclip PROTO((int, char **)); 113 115 int vect_select PROTO((int, char **)); 114 116 int vgrid PROTO((int, char **)); 115 117 int vgauss PROTO((int, char **)); 118 int vellipse PROTO((int, char **)); 116 119 int vmaxwell PROTO((int, char **)); 117 120 int vload PROTO((int, char **)); … … 218 221 {1, "rebin", rebin, "rebin image data by factor of N"}, 219 222 {1, "resize", resize, "set graphics/image window size"}, 223 {1, "relocate", relocate, "set graphics/image window position"}, 220 224 {1, "roll", roll, "roll image to new start point"}, 221 225 {1, "rotate", rotate, "rotate image"}, … … 243 247 {1, "uniq", uniq, "create a uniq vector subset from a vector"}, 244 248 {1, "unsign", unsign, "toggle the UNSIGN status"}, 245 {1, "vbin", vbin, "rebin vector data by a fector of N"}, 249 {1, "vbin", vbin, "rebin vector data by a factor of N"}, 250 {1, "vgroup", vgroup, "group y vector into bins defined by x vector values"}, 246 251 {1, "vclip", vclip, "clip values in a vector to be within a range"}, 247 252 {1, "vectors", list_vectors, "list vectors"}, 248 253 {1, "vgauss", vgauss, "fit a Gaussian to a vector"}, 254 {1, "vellipse", vellipse, "fit a Ellipse to a vector pair"}, 249 255 {1, "vgrid", vgrid, "generate an image from a triplet of vectors"}, 250 256 {1, "vhistogram", histogram, "generate histogram from vector"}, -
trunk/Ohana/src/opihi/cmd.data/subset.c
r20936 r25757 6 6 7 7 char *out; 8 int i, Npts, size ;8 int i, Npts, size, valid; 9 9 Vector *ivec, *ovec, *tvec; 10 10 … … 12 12 ivec = ovec = tvec = NULL; 13 13 14 if ((argc < 6) || strcmp(argv[2], "=") || strcmp (argv[4], "if")) { 15 gprint (GP_ERR, "SYNTAX: subset vec = vec if (logic expression)\n"); 14 valid = TRUE; 15 valid &= (argc >= 6); 16 valid &= !strcmp(argv[2], "="); 17 valid &= !strcmp(argv[4], "if") || !strcmp (argv[4], "where"); 18 if (!valid) { 19 gprint (GP_ERR, "SYNTAX: subset vec = vec [if/where] (logic expression)\n"); 16 20 return (FALSE); 17 21 } … … 76 80 return (TRUE); 77 81 78 error:82 error: 79 83 DeleteVector (tvec); 80 84 DeleteVector (ovec); -
trunk/Ohana/src/opihi/cmd.data/tvcolors.c
r16059 r25757 19 19 if (argc != 2) { 20 20 gprint (GP_ERR, "USAGE: tvcolors (colormap)\n"); 21 gprint (GP_ERR, " colormap options : greyscale, -greyscale, rainbow, heat, fullcolor, ruffcolor (also grayscale, -grayscale)\n"); 21 22 return (FALSE); 22 23 }
Note:
See TracChangeset
for help on using the changeset viewer.
