DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Delete zero-value data

Hello,

 

I have a problem with some of my measures. I attached a "normal" measure and some of these "weird" measures to this post.In a normal measurment, I have one broad peak measured but in some of the measures I have two peaks separated by 0 values. What I would need, is to delete all the measurment points that are between the two measurment peaks, since there should be only one single, broad peak.

 

Has anyone a hint on the functions I could use?

 

Thanks in advance for the help.

 

0 Kudos
Message 1 of 5
(5,344 Views)

Hello Josq,

 

If I understand your question correctly I would suggest to set the Band cursor und set a flag.

Afterwards you can delete the points in this area. 

 

To merge the peaks, you can use scripting. 

 

best regards

Richard

0 Kudos
Message 2 of 5
(5,303 Views)

Thank you Richard20 for your reply,

 

I am trying to use a script to merge the peaks, but am not sure of what function I should use. Using a trigger would not work since I pass the trigger (0) multiple times.

If you have any other suggestions...

0 Kudos
Message 3 of 5
(5,300 Views)

Hello josq,

 

you can filter the values near zero. 

For example you filter channel 1, if value is not zero you can put the value into another array/channel.

At the end you have an array/channel 2 without all the values near zero.

 

That is just a suggestion. Perhaps there is a better solution.

 

Have a nice day

 

Richard

0 Kudos
Message 4 of 5
(5,283 Views)

Hi Josq,

 

My personal favorite to deal with bad values, is to use the NoValue Handler

 

It is used with two commands.  One to convert the bad values to Novalue and the second command directs how to handle Novalues.

 

You can see the help page by searching for "Searching for and Interpolating Invalid Values"

No values can either be deleted or the value interpolated from the existing data points around the novalue.

 

The command to change values to novalue is:

Ch("Group2/Result") = Ch("Group1/Input")+CTNV(Ch("Group1/Input")>10)

 

This is the command that will either remove or interpolate the values.

Call ChnNovHandle("Group/Channel1","Group/Channel2","Delete","X",False,False)

 

Paul

 

0 Kudos
Message 5 of 5
(5,246 Views)