anchor.diff:    call chr_split(inLine, lnSplit, nSplit, spErr)
     if(spErr) then
       write(lout,"(a)") "CHEBY> ERROR Failed to split Chebyshev input line:"
  -    write(lout,"(a)") inLine
       goto 30
     end if
   
  
positive.code:   if(nSplit >= 5) call chr_cast(lnSplit(5),cheby_angle(icheby(iElem)),iErr)
    if(nSplit >= 6) call chr_cast(lnSplit(6),cheby_offset_x(icheby(iElem)),iErr)
    if(nSplit >= 7) call chr_cast(lnSplit(7),cheby_offset_y(icheby(iElem)),iErr)
    if(nSplit >= 8) call chr_cast(lnSplit(8),cheby_L(icheby(iElem)),iErr)
    if(nSplit >= 9) call chr_cast(lnSplit(9),cheby_I(icheby(iElem)),iErr)
  
    if(st_debug) then
      call sixin_echoVal("name",    bez(iElem),                                         "CHEBY",iLine)
      call sixin_echoVal("filename",trim(cheby_filename(cheby_itable(icheby(iElem)))),  "CHEBY",iLine)
      if(nSplit >= 3) call sixin_echoVal("r2 [mm]"      , cheby_r2(icheby(iElem)),      "CHEBY",iLine)
      if(nSplit >= 4) call sixin_echoVal("r1 [mm]"      , cheby_r1(icheby(iElem)),      "CHEBY",iLine)
      if(nSplit >= 5) call sixin_echoVal("tilt [rad]"   , cheby_angle(icheby(iElem)),   "CHEBY",iLine)
      if(nSplit >= 6) call sixin_echoVal("offset_x [mm]", cheby_offset_x(icheby(iElem)),"CHEBY",iLine)
      if(nSplit >= 7) call sixin_echoVal("offset_y [mm]", cheby_offset_y(icheby(iElem)),"CHEBY",iLine)
      if(nSplit >= 8) call sixin_echoVal("L [m]"        , cheby_L(icheby(iElem)),       "CHEBY",iLine)
      if(nSplit >= 9) call sixin_echoVal("I [A]"        , cheby_I(icheby(iElem)),       "CHEBY",iLine)
    end if
  
  end subroutine cheby_parseInputLine
  
negative.code:         xx = rr * cos_mb(theta)
          yy = rr * sin_mb(theta)
        end if
        ! compute kick from cheby map
        call cheby_getKick( xx, yy, dxp, dyp, cheby_itable(icheby(ix)) )
        ! in case cheby has a non-zero angle, rotate kicks
        if (lrotate) then
          ! NB: cheby_angle(icheby(ix)) is the rotation angle of the cheby
  