Administrators Teddy Posted July 19 Administrators Share Posted July 19 A user asked how do I add two or more signals with gaps in them such the result that has a value during the gap area? Link to comment Share on other sites More sharing options...
Administrators Solution Teddy Posted July 19 Author Administrators Solution Share Posted July 19 The simplest fix is to set the regions without data to a value of 0 and then add them. This can be achieved by making the following change to your formula. Other values can be used as the baseline but zero is the most common one for replacing the invalid data. $signal1.replaceNotValid(0) + $signal2.replaceNotValid(0) Below is a screenshot of two signals being added with gaps in them. The result signals show the result of not replacing the invalids with zero and replacing them with zero to show the difference. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now