I = canonicalCarpet(g,cliff)
(I,xmat,ymat) = canonicalCarpet(g,cliff,Scrolls=>true)
This is just a re-indexing of the carpet script: canonicalCarpet(g,cliff) = carpet(g-cliff-1, cliff). Here the natural choices for cliff are $1 \leq{} cliff \leq{} (g-1)//2$.
The object canonicalCarpet is a method function with options.