Jump to content

Export data, but only for discrete timestamps


Kevin

Recommended Posts

The question

Suppose I have an irregularly spaced discrete signal, and several continuous signals.  Is there a simple way to export the data such that I only get data from the times when the discrete signal has data?

I.e. suppose my discrete data was taken at 1min, 3.1min, 8min and 19.5min.  Can I get an exported sheet that has the value of all the interpolated results only at 1, 3.1, 8 and 19.5 minutes?

What I have tried

  • Automatic Gridding: Fails to export any discrete data
  • Custom Gridding: Fails to export any discrete data 
  • Original Timestamps: Exports all data, but the discrete and interpolated signals are misaligned
Edited by Kevin
improve clarity
Link to comment
Share on other sites

Hi Kevin,

you can resample the continuos signal with the timestamps of the discrete one:

$continous.resample($discrete)

This will create a new signal with interpolated values. Exporting the values with original timestamps should give you the desired results.

Regards, 

Thorsten

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...