Hi all, I was thinking that an expert like FishVal might be interested in solving this one (based on his name).
I have several fish tagged with radio telemetry tags. These tags send a signal to a telemetry receiver, which I download and import into an Access 2003 database. So I have a table with the following columns: an AutoNumber, Station, Datetime, and Code (the tag number). Here is some sample data:
ID Station Datetime Code
3421 R11 30/03/2007 11:37:25 96
3306 R11 30/03/2007 11:42:02 96
1192 R11 30/03/2007 12:01:24 96
281 R11 30/03/2007 12:01:31 96
4804 R11 30/03/2007 12:02:02 96
1201 R11 30/03/2007 12:02:39 96
4810 R11 30/03/2007 12:06:37 96
289 R11 30/03/2007 12:11:08 96
1210 R11 30/03/2007 12:12:46 96
4817 R11 30/03/2007 12:16:58 96
296 R11 30/03/2007 12:21:26 96
1217 R11 30/03/2007 12:23:06 96
4826 R11 30/03/2007 12:27:33 96
4834 R11 30/03/2007 12:38:08 96
4844 R11 30/03/2007 12:48:32 96
4853 R11 30/03/2007 12:57:42 96
301 R11 30/03/2007 12:57:58 96
305 R11 30/03/2007 13:07:50 96
4861 R11 30/03/2007 13:07:55 96
4870 R11 30/03/2007 13:18:07 96
310 R11 30/03/2007 13:28:27 96
4879 R11 30/03/2007 13:28:34 96
4887 R11 30/03/2007 13:40:00 96
4894 R11 30/03/2007 13:49:11 96
4902 R11 30/03/2007 13:59:48 96
4915 R11 30/03/2007 14:19:46 96
4921 R11 30/03/2007 14:31:04 96
321 R11 30/03/2007 14:39:34 96
4928 R11 30/03/2007 14:40:52 96
325 R11 30/03/2007 14:43:30 96
4936 R11 30/03/2007 14:50:00 96
4945 R11 30/03/2007 15:02:23 96
334 R11 30/03/2007 15:05:10 96
4954 R11 30/03/2007 15:10:37 96
4961 R11 30/03/2007 15:20:20 96
337 R11 30/03/2007 15:21:07 96
342 R11 30/03/2007 15:23:13 96
4970 R11 30/03/2007 15:33:10 96
346 R11 30/03/2007 15:35:43 96
4978 R11 30/03/2007 15:41:22 96
350 R11 30/03/2007 15:46:23 96
4986 R11 30/03/2007 15:52:14 96
357 R11 30/03/2007 15:53:00 96
4995 R11 30/03/2007 16:02:02 96
The problem that I’m having is that sometimes a fish will hang out next to a station for a long period of time (creating a record every few seconds). I want to summarize the data so that if detections are less than 15 minutes apart (for 1 tag at one station) it just shows the first record and the last record before the interval that is greater than 15 minutes. So that the 45 records I pasted above could be summarized into three records like this:
Station Start Time EndTime Code
R11 30/03/2007 11:37:25 30/03/2007 11:42:02 96
R11 30/03/2007 12:01:24 30/03/2007 13:59:48 96
R11 30/03/2007 14:19:46 30/03/2007 16:02:02 96
When I first started this project it took a few minutes to do manually. Unfortunately, I now have half a million records with possibly another million records before the batteries in the tags fail.
Any information would be greatly appreciated and I thank you all in advance.
Sincerely,
DuckNut.
I have several fish tagged with radio telemetry tags. These tags send a signal to a telemetry receiver, which I download and import into an Access 2003 database. So I have a table with the following columns: an AutoNumber, Station, Datetime, and Code (the tag number). Here is some sample data:
ID Station Datetime Code
3421 R11 30/03/2007 11:37:25 96
3306 R11 30/03/2007 11:42:02 96
1192 R11 30/03/2007 12:01:24 96
281 R11 30/03/2007 12:01:31 96
4804 R11 30/03/2007 12:02:02 96
1201 R11 30/03/2007 12:02:39 96
4810 R11 30/03/2007 12:06:37 96
289 R11 30/03/2007 12:11:08 96
1210 R11 30/03/2007 12:12:46 96
4817 R11 30/03/2007 12:16:58 96
296 R11 30/03/2007 12:21:26 96
1217 R11 30/03/2007 12:23:06 96
4826 R11 30/03/2007 12:27:33 96
4834 R11 30/03/2007 12:38:08 96
4844 R11 30/03/2007 12:48:32 96
4853 R11 30/03/2007 12:57:42 96
301 R11 30/03/2007 12:57:58 96
305 R11 30/03/2007 13:07:50 96
4861 R11 30/03/2007 13:07:55 96
4870 R11 30/03/2007 13:18:07 96
310 R11 30/03/2007 13:28:27 96
4879 R11 30/03/2007 13:28:34 96
4887 R11 30/03/2007 13:40:00 96
4894 R11 30/03/2007 13:49:11 96
4902 R11 30/03/2007 13:59:48 96
4915 R11 30/03/2007 14:19:46 96
4921 R11 30/03/2007 14:31:04 96
321 R11 30/03/2007 14:39:34 96
4928 R11 30/03/2007 14:40:52 96
325 R11 30/03/2007 14:43:30 96
4936 R11 30/03/2007 14:50:00 96
4945 R11 30/03/2007 15:02:23 96
334 R11 30/03/2007 15:05:10 96
4954 R11 30/03/2007 15:10:37 96
4961 R11 30/03/2007 15:20:20 96
337 R11 30/03/2007 15:21:07 96
342 R11 30/03/2007 15:23:13 96
4970 R11 30/03/2007 15:33:10 96
346 R11 30/03/2007 15:35:43 96
4978 R11 30/03/2007 15:41:22 96
350 R11 30/03/2007 15:46:23 96
4986 R11 30/03/2007 15:52:14 96
357 R11 30/03/2007 15:53:00 96
4995 R11 30/03/2007 16:02:02 96
The problem that I’m having is that sometimes a fish will hang out next to a station for a long period of time (creating a record every few seconds). I want to summarize the data so that if detections are less than 15 minutes apart (for 1 tag at one station) it just shows the first record and the last record before the interval that is greater than 15 minutes. So that the 45 records I pasted above could be summarized into three records like this:
Station Start Time EndTime Code
R11 30/03/2007 11:37:25 30/03/2007 11:42:02 96
R11 30/03/2007 12:01:24 30/03/2007 13:59:48 96
R11 30/03/2007 14:19:46 30/03/2007 16:02:02 96
When I first started this project it took a few minutes to do manually. Unfortunately, I now have half a million records with possibly another million records before the batteries in the tags fail.
Any information would be greatly appreciated and I thank you all in advance.
Sincerely,
DuckNut.
Comment