03-04-2009 11:21 AM
I am trying to analyse some data which has been collected by 2 devices. The data has breaks in it and the values are not monotic. I have generated a new timeline and used ChnMapLinCalc to map the more monotic data to my new timeline. This has produced three channels, each containing NoValues but with data at the correct time. When I use ChnAdd to add these channels together I get all NoValues, as if NoValues + data = NoValues. How can I add these together as though NoValues were zero?
Solved! Go to Solution.
03-04-2009 01:24 PM
Hello Roger,
It sounds like the"Process NoValues" function in DIAdem ANALYSIS would help you.
Change to the ANALYSIS panel, select the "Channel functions" and the last function there is called "process NoValues".
The "Replace" option is the one you want. Simply replace the NoValues with "0" and you should be good to go for your calculation.
Let me know if that helped,
07-10-2009 02:42 AM
Hi,
I am having a similar problem whilst trying to add two channels, one of which contains NoValues. However, when I use the Process NoValues on the Channel Functions tab, I only get the option to either delete the NoValues, or interpolate them. There is no other option to replace the NoValues with zeroes, which is what I require.
Is this because I am using DIAdem 10.1, and the replace option is in a newer release?
Thanks
07-10-2009 08:19 AM
Hello KJ2,
This is the screen shot from version 11.1, which shows all three options. The "replace" option might have been added for version 10.2 or version 11. I don't have version 10.1 to check.
You can download a version 11.1 evaluation copy from http://ni.com/diadem to test.
Alternatively, you can probably also replace the NoValues in a channel with "0" using a VBS Script. That might be a little slower, but should work.
Best regards,
07-13-2009 02:29 AM
Hi Otmar,
Thanks for the reply. I've managed to get on to v10.2, and the "replace" option is available, so it clearly must have been added for this version.
Many thanks for your help.