Thanks Joe for the quick response. It worked, but I needed to convert the signal back to step and I did it as:
$series.aggregate(sum(), $capsules.setMaximumDuration(40h), durationKey())
Any simpler ways to convert this to step again.
For Sig1, you can see that there is no line in the first drop or I would say missing data point. tried to use setmaxinterpolate(), but it is not filling the gaps. Any suggestions on this would be much appreciated.
Thanks.