Changeset 16430
- Timestamp:
- Feb 13, 2008, 3:23:07 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.data/init.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.data/init.c
r16119 r16430 120 120 121 121 static Command cmds[] = { 122 { "accum", accum,"accumulate vector values in another vector"},123 { "applyfit", applyfit,"apply fit to new vector"},124 { "applyfit2d", applyfit2d,"apply 2-d fit to new vector"},125 { "box", box,"draw a box on the plot"},126 { "book",book_command, "commands to manipulate book/page/word data"},127 { "center", center,"center image on coords"},128 { "circstats", circstats,"circular statistics"},129 { "clear", clear,"erase plot"},130 { "clip", clip,"clip values in a buffer to be within a range"},131 { "close", close_device, "close the current display device"},132 { "concat", concat,"reduce vector dimension"},133 { "contour", contour,"create contour from image"},134 { "create", create,"create a new vector"},135 { "cumulative", cumulative,"build a cumulative histogram from a specific histogram"},136 { "cursor", cursor,"get coords from cursor"},137 { "cut", cut,"extract a cut across an image"},138 { "datafile", datafile,"define file to read vectors"},139 { "dbconnect", dbconnect,"setup mysql db connection"},140 { "dbselect", dbselect,"extract vectors from mysql database table"},141 { "delete", delete,"delete vectors or matrices"},142 { "device", device,"set / get current graphics device"},143 { "dimendown", dimendown,"convert matrix to vector"},144 { "dimenup", dimenup,"convert vector to matrix"},145 { "erase", erase,"erase objects on an overlay"},146 { "extract", extract,"extract a portion of a buffer into another buffer"},147 { "fft1d", fft1d,"fft on the pixel-stream in an image"},148 { "fft2d", fft2d,"fft on an image"},149 { "fit", fit,"fit polynomial to vector pair"},150 { "fit2d", fit2d,"fit 2-d polynomial to vector triplet"},151 { "gaussj", gaussjordan,"solve Ax = B (N-D)"},152 { "gaussdev",gaussdeviate, "generate a gaussian deviate vector"},153 { "gaussint",gaussintegral, "return the integrated gaussian vector"},154 { "grid", grid,"plot cartesian grid"},155 { "gridify", gridify,"convert vector triplet to buffer"},156 { "grow", grow,"grow a mask"},157 { "ungridify", ungridify, "convert buffer region to vector triplet"},158 { "header", header,"print buffer header"},159 { "histogram", histogram,"generate histogram from vector"},160 { "imcut", imcut,"linear image cut between arbitrary coords"},161 { "imhist", imhist,"histogram of an image region"},162 { "imsmooth", imsmooth,"circular gaussian smoothing"},163 { "integrate", integrate,"integrate a vector"},164 { "interpolate", interpolate,"interpolate between vector pairs"},165 { "jpeg", jpeg,"write text line on graph"},166 { "png", jpeg,"write text line on graph"},167 { "ppm", jpeg,"write text line on graph"},168 { "kern", kern,"convolve with 3x3 kernel"},169 { "keyword", keyword,"extract a FITS keyword from buffer header"},170 { "labels", labels,"define labels for plot"},171 { "limits", limits,"define plot limits"},172 { "line", line,"plot line"},173 { "buffers", list_buffers, "list the currently allocated buffers"},174 { "vectors",list_vectors, "list vectors"},175 { "load", load,"load an SAOimage style overlay"},176 { "lookup", lookup,"convert vector via lookup table (vector pair)"},177 { "mkrgb", mkrgb,"convert 3 images to rgb jpeg"},178 { "mcreate", mcreate,"create a matrix"},179 { "medacc", medacc,"accumulate vector values in another vector"},180 { "mget", mget,"extract a vector from a matrix"},181 { "minterp", minterp,"interpolate image pixels"},182 { "mset", mset,"insert a vector in a matrix"},183 { "peak", peak,"find vector peak in range"},184 { "periodogram", periodogram,"measure periods in unevenly sampled data"},185 { "plot", plot,"plot a pair of vectors"},186 { "dot", dot,"plot a single point"},187 { "point", point,"load overlay with single point"},188 { "ps", ps,"define labels for plot"},189 { "queuepop", queuepop,"pop value from queue to variable"},190 { "queuedrop", queuedrop,"drop values from queue matching a key"},191 { "queueprint", queueprint,"print the contents of a queue"},192 { "queuepush", queuepush,"push value onto queue"},193 { "queueinit", queueinit,"create an empty queue"},194 { "queuedelete", queuedelete,"delete a queue"},195 { "queuelist", queuelist,"list defined queues"},196 { "queueload", queueload,"load queue from command"},197 { "queuesize", queuesize,"show queue size"},198 { "rd", rd,"load fits image"},199 { "rdseg", rdseg,"read a segment of an image from a file"},200 { "read", read_vectors, "read vectors from datafile"},201 { "rebin", rebin,"rebin data by factor of N"},202 { "resize", resize,"set graphics/image window size"},203 { "roll", roll,"roll image to new start point"},204 { "rotate", rotate,"rotate image"},205 { "save", save,"save an SAOimage style overlay"},206 { "section", section,"define section of graph"},207 { "set", set,"vector math"},208 { "shift", shift,"shift data in an image"},209 { "sort",sort_vectors, "sort list of vectors"},210 { "spline.apply", spline_apply_cmd, "apply spline fit to generate an image"},211 { "spline.const", spline_construct_cmd, "create spline 2nd deriv. terms"},212 { "stats", stats,"give statistics on a portion of a buffer"},213 { "style", style,"set the style for graph plots"},214 { "subraster", subraster,"subraster of fits image"},215 { "subset", subset,"expand vector dimension"},216 { "svd", svd,"singular value decomposition of a matrix"},217 { "swapbytes",swapbytes, "byte swap thing"},218 { "textline", textline,"write text line on graph"},219 { "tv", tv,"display an image on the Kii window"},220 { "tvchannel", tvchannel,"set the current tv channel"},221 { "tvcolors", tvcolors,"set the tv colormap"},222 { "tvcontour", tvcontour,"send contour to overlay"},223 { "tvgrid", tvgrid,"wait until return is typed"},224 { "uniq", uniq,"create a uniq vector subset from a vector"},225 { "unsign", unsign,"toggle the UNSIGN status"},226 { "vbin", vbin,"bin values in a vector to be within a range"},227 { "vclip", vclip,"clip values in a vector to be within a range"},228 { "select", vect_select,"selective vector assignment"},229 { "vgauss", vgauss,""},230 { "vmaxwell", vmaxwell,""},231 { "vgrid", vgrid,""},232 { "vload", vload,"load vectors on Kii"},233 { "vstat", vstat,"get info from imreg database"},234 { "vsmooth", vsmooth,"gaussian smooth of a vector"},235 { "vroll", vroll,"roll vector elements"},236 { "vpop", vpop,"remove first element"},237 { "wd", wd,"write an image to a file"},238 { "write",write_vectors, "write vectors to datafile"},239 { "zap", zap,"delete pixels"},240 { "zplot", zplot,"plot x y with size scaled by z"},122 {1, "accum", accum, "accumulate vector values in another vector"}, 123 {1, "applyfit", applyfit, "apply fit to new vector"}, 124 {1, "applyfit2d", applyfit2d, "apply 2-d fit to new vector"}, 125 {1, "box", box, "draw a box on the plot"}, 126 {1, "book", book_command, "commands to manipulate book/page/word data"}, 127 {1, "center", center, "center image on coords"}, 128 {1, "circstats", circstats, "circular statistics"}, 129 {1, "clear", clear, "erase plot"}, 130 {1, "clip", clip, "clip values in a buffer to be within a range"}, 131 {1, "close", close_device, "close the current display device"}, 132 {1, "concat", concat, "reduce vector dimension"}, 133 {1, "contour", contour, "create contour from image"}, 134 {1, "create", create, "create a new vector"}, 135 {1, "cumulative", cumulative, "build a cumulative histogram from a specific histogram"}, 136 {1, "cursor", cursor, "get coords from cursor"}, 137 {1, "cut", cut, "extract a cut across an image"}, 138 {1, "datafile", datafile, "define file to read vectors"}, 139 {1, "dbconnect", dbconnect, "setup mysql db connection"}, 140 {1, "dbselect", dbselect, "extract vectors from mysql database table"}, 141 {1, "delete", delete, "delete vectors or matrices"}, 142 {1, "device", device, "set / get current graphics device"}, 143 {1, "dimendown", dimendown, "convert matrix to vector"}, 144 {1, "dimenup", dimenup, "convert vector to matrix"}, 145 {1, "erase", erase, "erase objects on an overlay"}, 146 {1, "extract", extract, "extract a portion of a buffer into another buffer"}, 147 {1, "fft1d", fft1d, "fft on the pixel-stream in an image"}, 148 {1, "fft2d", fft2d, "fft on an image"}, 149 {1, "fit", fit, "fit polynomial to vector pair"}, 150 {1, "fit2d", fit2d, "fit 2-d polynomial to vector triplet"}, 151 {1, "gaussj", gaussjordan, "solve Ax = B (N-D)"}, 152 {1, "gaussdev", gaussdeviate, "generate a gaussian deviate vector"}, 153 {1, "gaussint", gaussintegral, "return the integrated gaussian vector"}, 154 {1, "grid", grid, "plot cartesian grid"}, 155 {1, "gridify", gridify, "convert vector triplet to buffer"}, 156 {1, "grow", grow, "grow a mask"}, 157 {1, "ungridify", ungridify, "convert buffer region to vector triplet"}, 158 {1, "header", header, "print buffer header"}, 159 {1, "histogram", histogram, "generate histogram from vector"}, 160 {1, "imcut", imcut, "linear image cut between arbitrary coords"}, 161 {1, "imhist", imhist, "histogram of an image region"}, 162 {1, "imsmooth", imsmooth, "circular gaussian smoothing"}, 163 {1, "integrate", integrate, "integrate a vector"}, 164 {1, "interpolate", interpolate, "interpolate between vector pairs"}, 165 {1, "jpeg", jpeg, "write text line on graph"}, 166 {1, "png", jpeg, "write text line on graph"}, 167 {1, "ppm", jpeg, "write text line on graph"}, 168 {1, "kern", kern, "convolve with 3x3 kernel"}, 169 {1, "keyword", keyword, "extract a FITS keyword from buffer header"}, 170 {1, "labels", labels, "define labels for plot"}, 171 {1, "limits", limits, "define plot limits"}, 172 {1, "line", line, "plot line"}, 173 {1, "buffers", list_buffers, "list the currently allocated buffers"}, 174 {1, "vectors", list_vectors, "list vectors"}, 175 {1, "load", load, "load an SAOimage style overlay"}, 176 {1, "lookup", lookup, "convert vector via lookup table (vector pair)"}, 177 {1, "mkrgb", mkrgb, "convert 3 images to rgb jpeg"}, 178 {1, "mcreate", mcreate, "create a matrix"}, 179 {1, "medacc", medacc, "accumulate vector values in another vector"}, 180 {1, "mget", mget, "extract a vector from a matrix"}, 181 {1, "minterp", minterp, "interpolate image pixels"}, 182 {1, "mset", mset, "insert a vector in a matrix"}, 183 {1, "peak", peak, "find vector peak in range"}, 184 {1, "periodogram", periodogram, "measure periods in unevenly sampled data"}, 185 {1, "plot", plot, "plot a pair of vectors"}, 186 {1, "dot", dot, "plot a single point"}, 187 {1, "point", point, "load overlay with single point"}, 188 {1, "ps", ps, "define labels for plot"}, 189 {1, "queuepop", queuepop, "pop value from queue to variable"}, 190 {1, "queuedrop", queuedrop, "drop values from queue matching a key"}, 191 {1, "queueprint", queueprint, "print the contents of a queue"}, 192 {1, "queuepush", queuepush, "push value onto queue"}, 193 {1, "queueinit", queueinit, "create an empty queue"}, 194 {1, "queuedelete", queuedelete, "delete a queue"}, 195 {1, "queuelist", queuelist, "list defined queues"}, 196 {1, "queueload", queueload, "load queue from command"}, 197 {1, "queuesize", queuesize, "show queue size"}, 198 {1, "rd", rd, "load fits image"}, 199 {1, "rdseg", rdseg, "read a segment of an image from a file"}, 200 {1, "read", read_vectors, "read vectors from datafile"}, 201 {1, "rebin", rebin, "rebin data by factor of N"}, 202 {1, "resize", resize, "set graphics/image window size"}, 203 {1, "roll", roll, "roll image to new start point"}, 204 {1, "rotate", rotate, "rotate image"}, 205 {1, "save", save, "save an SAOimage style overlay"}, 206 {1, "section", section, "define section of graph"}, 207 {1, "set", set, "vector math"}, 208 {1, "shift", shift, "shift data in an image"}, 209 {1, "sort", sort_vectors, "sort list of vectors"}, 210 {1, "spline.apply", spline_apply_cmd, "apply spline fit to generate an image"}, 211 {1, "spline.const", spline_construct_cmd, "create spline 2nd deriv. terms"}, 212 {1, "stats", stats, "give statistics on a portion of a buffer"}, 213 {1, "style", style, "set the style for graph plots"}, 214 {1, "subraster", subraster, "subraster of fits image"}, 215 {1, "subset", subset, "expand vector dimension"}, 216 {1, "svd", svd, "singular value decomposition of a matrix"}, 217 {1, "swapbytes", swapbytes, "byte swap thing"}, 218 {1, "textline", textline, "write text line on graph"}, 219 {1, "tv", tv, "display an image on the Kii window"}, 220 {1, "tvchannel", tvchannel, "set the current tv channel"}, 221 {1, "tvcolors", tvcolors, "set the tv colormap"}, 222 {1, "tvcontour", tvcontour, "send contour to overlay"}, 223 {1, "tvgrid", tvgrid, "wait until return is typed"}, 224 {1, "uniq", uniq, "create a uniq vector subset from a vector"}, 225 {1, "unsign", unsign, "toggle the UNSIGN status"}, 226 {1, "vbin", vbin, "bin values in a vector to be within a range"}, 227 {1, "vclip", vclip, "clip values in a vector to be within a range"}, 228 {1, "select", vect_select, "selective vector assignment"}, 229 {1, "vgauss", vgauss, ""}, 230 {1, "vmaxwell", vmaxwell, ""}, 231 {1, "vgrid", vgrid, ""}, 232 {1, "vload", vload, "load vectors on Kii"}, 233 {1, "vstat", vstat, "get info from imreg database"}, 234 {1, "vsmooth", vsmooth, "gaussian smooth of a vector"}, 235 {1, "vroll", vroll, "roll vector elements"}, 236 {1, "vpop", vpop, "remove first element"}, 237 {1, "wd", wd, "write an image to a file"}, 238 {1, "write", write_vectors, "write vectors to datafile"}, 239 {1, "zap", zap, "delete pixels"}, 240 {1, "zplot", zplot, "plot x y with size scaled by z"}, 241 241 }; 242 242 … … 247 247 InitKapa (); 248 248 InitQueues (); 249 InitBooks (); 249 250 250 251 for (i = 0; i < sizeof (cmds) / sizeof (Command); i++) { 251 252 AddCommand (&cmds[i]); 252 253 } 253 254 254 } 255 256 void FreeData () { 257 258 FreeKapa (); 259 FreeQueues (); 260 FreeBooks (); 261 }
Note:
See TracChangeset
for help on using the changeset viewer.
