Compressing Detections¶
Compressing detections is done by looking at the detection times and
locations of an animal. Any detections that occur successively in time,
and the time between detections does not exceed the timefilter, in
the same location are combined into a single detection with a start and
end time. The result is a compressed detections Pandas DataFrame.
Compression is the first step of the Mihoff Interval Data Tool. Compressed detection DataFrames are needed for the tools, such as interval and cohort.
Warning
Input files must include datecollected, catalognumber, and unqdetecid as columns.
You can use the Pandas DataFrame.to_csv() function to output the
file to a desired location.
Compression Functions¶
-
compress.compress_detections(detections, timefilter=3600)¶ Creates compressed dataframe from detection dataframe
Parameters: - detections – detection dataframe
- timefilter – A maximum amount of time in seconds that can pass before a new detction event is started
Returns: A Pandas DataFrame matrix of detections events