Hi,
I am trying to run a simple script that will select and then hide and exclude points that are greater than 100 mm in radial distance from the center.
To simplify debugging, I split this into two scripts: the first one generates a column with the radial distance Radial = (x^2 + y^2)^(1/2) formula and the second evaluates this formula, selecting and hiding rows where Radial > 100.
Unfortunately this does not work. For some very strange reason, evaluation only works on this formula up to a certain value. Radial > (anything over 30) selects all rows.
I can see two solutions:
1) Write values into the Radial column, not the formula itself. (Values are evaluated properly, the formula is not). Not sure how to do this.
2) Understand and correct the problem so that the formula can be evaluated against a value greater than 30.
Either a scripting answer or interactive explanation would be acceptable. Would like to resolve this problem and learn from it.
Thanks!
Dave
// script for creating the Radial column<BR />dt1 = Current Data Table ();
dt1 << New Column( "Radial", Formula ((X coordinate^2 + Y coordinate^2)^(1/2)));<BR /><BR />// script for evaluating the Radial formula<BR />dt =Current Data Table();<BR />dt << Clear Row States; <BR />dt << Select where(Radial < 100);<BR />dt << hide and exclude;<BR />