Johannes Sikstrom Posted August 10, 2023 Share Posted August 10, 2023 I have a signal for the production LAST hour. I want to create "Hourly production" from this. Since the samples in the raw data (below image) is not always right on the whole hour I want to use the value from this signal on the half hours and shift that value 90 minutes back to the previous whole hour. So I want the value of the step signal below from 14:30 to be placed at exactly 13:00 in my new signal. And 15:30 -> 14:00 and so on. How would i go about that? 1 Link to comment Share on other sites More sharing options...
Solution Thorsten Vogt Posted August 10, 2023 Solution Share Posted August 10, 2023 Hi Johannes, maybe one quick way you could try: First you can move the signal by a longer period than the 90 minutes to make sure the value of the signal is present at the timestamp of the whole hour. Here I used $signal.move(-100min) Next you can resample the moved signal: $movedSignal.resample(1h) Regards, Thorsten 2 Link to comment Share on other sites More sharing options...
Johannes Sikstrom Posted August 10, 2023 Author Share Posted August 10, 2023 Yes, that works like a charm! Never used resample before, that's useful! 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