06-10-2010 03:49 PM
For some reason I am having the worse time with this. I have a channel "a" with numeric values ranging from as 0 to 15 and I want to make a new channel "b" from channel "a" that filters out all values below 1 and above 14. What is the easiest way to do this?
Thanks
06-11-2010 11:58 AM
Hi Stysley,
One option you could adapt from DIAdem Help is located under Procedures » Mathematics » Eliminating Outliers Using NoValues where you can enter the following formula in the Calculator:
Ch("Group2/b") = Ch("Group1/a") + CTNV(Ch("Group1/a")>14) + CTNV (Ch("Group1/a")<1)
You can also copy the channel, and in DIAdem VIEW, choose the frame cursor to manually frame unwanted points, set flags, and select the remove data points option.
I hope this helps!
06-14-2010 04:28 PM
Bonus question....is there a good way to do this for several channels all at once? Doing this one at a time is a bit inefficient.
Thanks.
06-15-2010 04:18 PM
Hi Stysley,
When performing calculations on multiple
channels, I would take advantage of DIAdem SCRIPT to implement a similar
command.
DIM i
FOR i = 1 to 3
Call Calculate("Ch(""Group2/[" & i & "]"") = Ch(""Group1/[" & i & "]"") + CTNV(Ch(""Group1/[" & i & "]"")>14) + CTNV (Ch(""Group1/[" & i & "]"")<1)",NULL,NULL,"")
NEXT
I hope this helps!