# Eyemovement data in ROI and hdf5 file

**URL:** <https://discourse.psychopy.org/t/eyemovement-data-in-roi-and-hdf5-file/43098>\
**Category:** Other\
**Tags:** eyetracking\
**Created:** [November 27, 2024, 4:22pm UTC](https://discourse.psychopy.org/t/eyemovement-data-in-roi-and-hdf5-file/43098 "2024-11-27T16:22:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yi\_Fan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/yi_fan/32/43466_2.png) [@Yi\_Fan](https://discourse.psychopy.org/u/Yi_Fan)\
**Post date:** [November 27, 2024, 4:22pm UTC](https://discourse.psychopy.org/t/eyemovement-data-in-roi-and-hdf5-file/43098/1 "2024-11-27T16:22:12Z")

</div>

Hi all,

I am using Tobii to conduct an eye movement study in PsychoPy. I have received output CSV files that include “number of looks,” “roi\_ontime,” and “roi\_off time” for each look, as well as HDF5 files containing gaze positions and timestamps.

I’m unsure how PsychoPy calculates the duration of each look (since the duration of each look within the ROI is not the same). Therefore, I’d like to ask if it’s feasible to select gaze position data primarily based on the “roi\_ontime” and “roi\_off time” and then calculate the average of the X and Y positions as gaze points in the roi.

Any tips will be greatly appreciated.Thanks in advance!!!
