integer*8 peph
integer j, itarget, iframe
real*8 firsttime, lasttime
integer res
res = f90calceph_open(peph, "example1.dat")
if (res.eq.1) then
do j=1, f90calceph_getorientrecordcount(peph)
res = f90calceph_getorientrecordindex(peph,j,itarget, firsttime, lasttime, iframe)
write (*,*) itarget, firsttime, lasttime, iframe
enddo
call f90calceph_close(peph)
endif