The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 How to sum up minute values to get daily values?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Kassandra

Germany
2 Posts

Posted - 12/03/2014 :  05:25:48 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin9.1G
Operating System: Windows

Hi everybody,
I use Origin to analyse minute data of power and massflow of a heatflow meter. Until now I have data over the last half year, that means I have more than 250000 data points for each measuring tool in one sheet.

Now I want to calculate the daily mean value of power, respectively the emitted daily heat. How can I do this? It is necessary to write a script with labtalk to sum up the values or does exist a special function, which I do not know until know? Could it be a problem, that every day some minute values are missing?

Who can give me an advice? Thanks a lot in advance!

lkb0221

China
497 Posts

Posted - 12/03/2014 :  1:25:55 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Origin uses Julian date to represent time and date data, which is a double value. So you can loop through the whole dataset, and take average on those that share the same integer part.
This needs to be done by script, I'm afraid.

Zheng
Origin
Go to Top of Page

Hideo Fujii

USA
1582 Posts

Posted - 12/03/2014 :  5:15:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Kassandra,

As Zheng wrote, the internal value of the Date column is the Julian date. Therefore, the decimal part represents
within 24 hours, and taking the integer can neglects the time differences. You can do this by
Set Column Values tool easily.
Then, you can aggregate in most flexible way by script, if you have a simple data format, you can choose
"Worksheet> Remove/Combine Duplicated Rows" menu with "Average" option to get the average of each day:



The result of this sample would be:



Hope this helps.

--Hideo Fujii
OriginLab

Go to Top of Page

Kassandra

Germany
2 Posts

Posted - 12/04/2014 :  10:11:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
thanks a lot for your answers. It was helpful for me.
Greetings from Kassandra
Go to Top of Page

Micz14

Poland
2 Posts

Posted - 08/29/2022 :  08:49:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi all,
Is it possible to get hourly average values from minutes values in the same way that Hideo Fujii did?

Edited by - Micz14 on 08/29/2022 08:50:18 AM
Go to Top of Page

snowli

USA
1420 Posts

Posted - 08/29/2022 :  09:24:29 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Yes, you can choose Analysis: Data Manipulation: Reduce by Group...

E.g. Set the sampling interval to be 60min or 1hour
Set the hour:minute:second part of "X Start" to be whole hour.
Also set Merge X by Subgroup Beginning.




Thanks, Snow
Go to Top of Page

Micz14

Poland
2 Posts

Posted - 08/30/2022 :  09:02:11 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you very much Snow, it helps me a lot
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000