The basic concepts in the package are implemented as the histogram, array of floats, and pgstate structures.

List of TCL Commands for histogram and arrays for floats:

The following commands act on the HG structure: hgClear hgDefine hgDel hgFill hgFillFromAf hgFromAf hgMean hgNew hgOper hgPlot hgPrint hgReg hgSigma vIndexFromHg

In addition there are some vector verbs (hgFillFromV and (hgNewFromV that pertain to hg's.

These commands act on the AF structure: afClear afDefine afDel afExtreme afFromList afGetError afGetValue afIndex afInvert afLimit afNew afOper afPlot afPlotResize afPrint afSet afSigmaClip afSize afMaskSet afMaskSetFromChain

These act on the PGSTATE structure: pgstateClose pgstateDefault pgstateDel pgstateNew pgstateNextWindow pgstateOpen pgstatePrint pgstateSet

These are the verbs to create and display chains: chainFromPlot chainToSao

These are for the PT structure: ptNew ptDefine ptDel

A couple of odd commands are included in the package: randGet regFluctuateAsSqrt seedSet

HG structure

hgClear Usage: hgClear hg clear a HG, leaving the bin definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgDefine Usage: hgDefine hg -name -min 0 -max 10 -nbin 10 Define a HG, with min=low edge of first bin, max=high edge of last bin, and nbin=number of bins. . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgDel USAGE: hgDel hg delete a HG . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgFill Usage: hgFill hg value -weight 1.0 Fill a HG bin at value with weight hgFillFromAf USAGE: hgFillFromAf hg af -afMask none Fill and existing HG with the values in af. Use only the points in afMask that are set to 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgFillFromAf USAGE: hgFillFromAf hg af -afMask none Fill and existing HG with the values in af. Use only the points in afMask that are set to 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgFromAf USAGE: hgFromAf af -name -min 1 -max 0 -nbin 20 -afMask none Create a new HG and fill it with the values in af. Set min>max for auto scaling. Use only the points in afMask that are set to 1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgMean Usage: hgMean hg Return the Mean of a HG . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgNew USAGE: hgNew create a new HG . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgOper Usage: hgOper hg1 operation hg2 Operate on two HGs. Valid operations are +, m, *, and /. Note that you want to use m for minus instead of -. . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgPlot usage: hgPlot pgstate hg Plot a HG in a PGSTATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgPrint Usage: hgPrint hg Print a HG . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgReg usage: hgReg hg reg Fill the histogram hg with the pixel values of region reg . . . . . . . . . . . . . . . . . . . . . . . . . . . . hgSigma usage: hgSigma hg Return the Sigma of a HG . . . . . . . . . . . . . . . . . . . . . . . . . . . . vIndexFromHg Usage: vIndexFromHg pgstate vX -vMask Make a new vector of the indices of vX based on selection in the vPlot window . . . . . . . . . . . . . . . . . . . . . . . . . . . .

AF structure

afClear USAGE: afClear af Clear an array of floats . . . . . . . . . . . . . . . . . . . . . . . . . . . . afDefine USAGE: afDefine af -name -nValue 100 Define an array of floats with a name and number of values . . . . . . . . . . . . . . . . . . . . . . . . . . . . afDel USAGE: afDel af delete a AF . . . . . . . . . . . . . . . . . . . . . . . . . . . . afExtreme USAGE: afExtreme af minORmax Return the extreme of the af. Set minORmax to either min or max. . . . . . . . . . . . . . . . . . . . . . . . . . . . . afFromAf USAGE: afFromAf afOriginal Make a copy of an array of floats . . . . . . . . . . . . . . . . . . . . . . . . . . . . afFromList Make an array of floats from the values of member on the list USAGE: afFromList list member . . . . . . . . . . . . . . . . . . . . . . . . . . . . afGetError USAGE: afGetError af position GetError the error of one memeber of the array . . . . . . . . . . . . . . . . . . . . . . . . . . . . afGetValue USAGE: afGetValue af position Get the value of one memeber of the array . . . . . . . . . . . . . . . . . . . . . . . . . . . . afIndex USAGE: afIndex af Set value=position for the af . . . . . . . . . . . . . . . . . . . . . . . . . . . . afInvert usage: afInvert af Create a new AF that inverts the input. If value=1 set the corresponding value to 0 and set all other values to 0. . . . . . . . . . . . . . . . . . . . . . . . . . . . . afLimit USAGE: afLimit af minORmax Return the limit of the af. Set minORmax to either min or max. . . . . . . . . . . . . . . . . . . . . . . . . . . . . afMaskSet USAGE: afMaskSet af list itemName evaluation valueCut If value is 1, keep it 1 if value of itemName on list satisfies evaluation compared to valueCut. Evaluation can be < > or ==. . . . . . . . . . . . . . . . . . . . . . . . . . . . . afMaskSetFromChain USAGE: afMaskSetFromChain af chain itemName evaluation valueCut If value is 1, keep it 1 if value of itemName on chain satisfies evaluation compared to valueCut. Evaluation can be < > or ==. . . . . . . . . . . . . . . . . . . . . . . . . . . . . afNew USAGE: afNew create a new AF . . . . . . . . . . . . . . . . . . . . . . . . . . . . afOper operate on two AFs. Valid operations are +, m, *, and /. Note that you want to use m for minus instead of -. USAGE: afOper af1 operation af2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . afPlot USAGE: afPlot pgstate afY afX -xmin 1.0 -xmax 0.0 -ymin 1.0 -ymax 0.0 -afMask none Plot an array of floats vs an array of floats . . . . . . . . . . . . . . . . . . . . . . . . . . . . afPrint USAGE: afPrint af Print the values and errors on an af . . . . . . . . . . . . . . . . . . . . . . . . . . . . afSet USAGE: afSet af position value -error 0.0 Set one member of an array of floats afSetWithConst USAGE: afSetWithConst af value -error 0.0 Set members of an AF with value and error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . afSize USAGE: afSize af Return the size of the af . . . . . . . . . . . . . . . . . . . . . . . . . . . . resizePlot Replot the afPlot zooming in on the rectangle selected with the middle mouse button. Select one point anywhere with the left mouse button to autoscale to the entire plot. USAGE: resizePlot pgstate afY afX -afMask none . . . . . . . . . . . . . . . . . . . . . . . . . . . .

PGSTATE structure

pgstateClose USAGE: pgstateClose pgstate Close a PGSTATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . pgstateDefault USAGE: pgstateDefault pgstate Reset PGSTATE settings to the default . . . . . . . . . . . . . . . . . . . . . . . . . . . . pgstateDel USAGE: pgstateDel pgstate delete a PGSTATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . pgstateNew USAGE: pgstateNew create a new PGSTATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . pgstateNextWindow USAGE: pgstateNextWindow pgstate Go to the next window in pgstate . . . . . . . . . . . . . . . . . . . . . . . . . . . . pgstateOpen USAGE: pgstateOpen pgstate Open a PGSTATE . . . . . . . . . . . . . . . . . . . . . . . . . . . . pgstatePrint USAGE: shPgstatePrint pgstate Print values in PGSTATE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . pgstateSet USAGE: shPgstateSet pgstate -device -nxwindow -nywindow -xfract -yfract -ixwindow -iywindow -just -axis -xopt -yopt -xtick -ytick -nxsub -nysub -plotTitle -symb -isLine -icMark -icLine -icBox -icLabel -lineWidth -lineStyle -isNewplot Set values in PGSTATE . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Thing Lists

chainFromPlot Make a CHAIN based on selection in the afPlot window USAGE: chainFromPlot pgstate inputList -afMask none . . . . . . . . . . . . . . . . . . . . . . . . . . . . chainToSao Mark the members of chain on the SAO window USAGE: chainToSao chain -rowName row -colName col -radiusName 10.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . .

PT Commands

ptNew USAGE: ptNew create a new PT . . . . . . . . . . . . . . . . . . . . . . . . . . . . ptDefine USAGE: ptDefine pt row col radius Define a PT, at row,col and radius . . . . . . . . . . . . . . . . . . . . . . . . . . . . ptDel USAGE: ptDel pt delete a PT . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Odd Commands

randGet Get a random number between min and max USAGE: randGet -min 0.0 -max 1.0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . regFluctuateAsSqrt Add noise to the region USAGE: regFluctuateAsSqrt region -gain 5.3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . seedSet Seed the random number generator rand with a call to srand USAGE: seedSet seed . . . . . . . . . . . . . . . . . . . . . . . . . . . .