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
 Filtering out a specific time slot.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

metroid02

Austria
10 Posts

Posted - 08/02/2017 :  02:16:23 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2017
Operating System: Windows 10

Hi guys I have a question that has been bugging me for quite some time: I need to filter out some specific time slots, the problem is that the data I am getting puts both the date and the time into the same cell, and sadly these values dont come in regular intervals due to which I cannot simply reduce the rows.

So the format of my data is something along these lines:
08/05/2013 20:00:00
08/05/2013 20:05:00
etc.

[dd.mm.yyyy]

And I need to get my hands on just the data given to me during the 10:00 to 14:00 time interval. Typically the data comes in 5 min intervals, but due to occasional shut downs etc. the stream is not constant.

Does someone have any suggestions as to how to get to that data (doing it manually is impossible as I have >1mio values).

AmandaLu

439 Posts

Posted - 08/02/2017 :  06:46:33 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please make sure the data you imported is Date format. Select Format: Column to open Column Properties dialog. Set
Format = Date
Display = 8/2/2017 HH:mm:ss

Then you can use “frac()” function to extract the time part. Set column format to Time to display time data correctly.


Now you can add a filter to time column to show data between 10:00 and 14:00.

Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

metroid02

Austria
10 Posts

Posted - 08/02/2017 :  07:28:41 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Amanda!

Thank you so much for the fast reply. Your solution worked beautifully!

BR
Go to Top of Page

greg

USA
1378 Posts

Posted - 08/14/2017 :  12:32:09 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
There is no need to add another column since you can filter Date+Time directly with a custom formula:

rmod(X,1)>=10/24 && rmod(x,1)<=14/24

or

frac(X)>=10/24 && frac(x)<=14/24

There is no hope!
(But I may be wrong.)

Edited by - greg on 08/14/2017 12:33:46 PM
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