cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Is there a way to analyze TimeSeries-Data with irregular timeSamplingInterval?

ph1
3-Newcomer
3-Newcomer

Is there a way to analyze TimeSeries-Data with irregular timeSamplingInterval?

When uploading Data Sets to Analytics Builder I need to add a meta data file which defines the different fields in the csv-file containing the data.

 

For the column containing the Time Stamp I need to define a parameter called "timeSamplingInterval" which defines how much time passes between each measurement.

 

However in my data set, the time intervals often vary between different measurements and the file upload gets rejected because of this, as shown in the attached png.

Is there some way to deal with this or an established workaround solution?
Should I try to use another module/extension to deal with TimeSeries-Data with irregular intervals?

 

 

ACCEPTED SOLUTION

Accepted Solutions
eengelbrecht
12-Amethyst
(To:ph1)

Hello,

 

My team has recently had a similar problem and we found a workaround solution. In the meta data file we set the time stamp to be an informational field (dataType: STRING and opType: INFORMATIONAL). We then created an additional field called timecount which is our time series field (dataType: DOUBLE, opType: TEMPORAL and timeSamplingInterval: 10 000).

 

The timecount field is essentially just and integer field counting the number of rows using a constant value. in Our case, we used a 10 second interval. 10 seconds is roughly the average time it took for us to gather a data sample.

 

I have attached snippets of our meta data file and our data.

Please see the following community post as well.

https://community.ptc.com/t5/IoT-Tech-Tips/How-to-work-with-ordinal-and-categorical-data-in-ThingWorx/m-p/542406

 

Hope this helps.

 

View solution in original post

4 REPLIES 4
jgreiner
13-Aquamarine
(To:ph1)

Hello,

 

Timeseries in ThingWorx Analytics typically requires a regular timeSamplingInterval although a little variability is accepted. 

 

For the timeSamplingInterval you could try using the average interval that the data inputs are coming in at as long as there is not too much variability.

 

If there is a good amount of variability between each input, you could create a separate column called count and increment it to increase by 1 for each column, and then set the the timeSamplingInterval to 1.  

 

Let me know if you have any other questions or concerns.

 

Warm Regards,

 

John

eengelbrecht
12-Amethyst
(To:ph1)

Hello,

 

My team has recently had a similar problem and we found a workaround solution. In the meta data file we set the time stamp to be an informational field (dataType: STRING and opType: INFORMATIONAL). We then created an additional field called timecount which is our time series field (dataType: DOUBLE, opType: TEMPORAL and timeSamplingInterval: 10 000).

 

The timecount field is essentially just and integer field counting the number of rows using a constant value. in Our case, we used a 10 second interval. 10 seconds is roughly the average time it took for us to gather a data sample.

 

I have attached snippets of our meta data file and our data.

Please see the following community post as well.

https://community.ptc.com/t5/IoT-Tech-Tips/How-to-work-with-ordinal-and-categorical-data-in-ThingWorx/m-p/542406

 

Hope this helps.

 

ph1
3-Newcomer
3-Newcomer
(To:eengelbrecht)

Thanks for the answer.

Does the "ttf"-column between the Timetamp and TimeCount-fields have any meaning related to the issue?

eengelbrecht
12-Amethyst
(To:ph1)

Hi 

 

No it doesn't. It is just a column specific to my data. The screenshots I attached was of a project I am working on. It is not related.

Announcements


Top Tags