Convert linear index to packet table index
[d,b,k] = ix2pkt(ix,D,n)
linear position in packet table array
shape of packet table
1-d packet table index