DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how do you make a simple numeric filter

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

 

0 Kudos
Message 1 of 4
(3,740 Views)

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!

Best Regards,
Swathi B
0 Kudos
Message 2 of 4
(3,715 Views)

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.   

0 Kudos
Message 3 of 4
(3,690 Views)

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!
Best Regards,
Swathi B
0 Kudos
Message 4 of 4
(3,671 Views)