from calcephpy import *

peph = CalcephBin.open("example1.dat")
n = peph.getpositionrecordcount()
for j in range(1, n+1):
    itarget, icenter, firsttime, lasttime, iframe, iseg = peph.getpositionrecordindex2(j)
    print(itarget, icenter, firsttime, lasttime, iframe, iseg)

peph.close()