[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rotten behavior with rot command



I did not find anything wierd when I tried it:

IDL> print, findgen(3,3)
      0.00000      1.00000      2.00000
      3.00000      4.00000      5.00000
      6.00000      7.00000      8.00000
IDL> print, rot(findgen(3,3), 180, /interp)
      8.00000      7.00000      6.00000
      5.00000      4.00000      3.00000
      2.00000      1.00000  1.90719e-07
IDL> print, rot(findgen(3,3), 90, /interp)
      2.00000      5.00000      8.00000
      1.00000      4.00000      7.00000
      0.00000      3.00000      6.00000

I couldn't quite understand how ROT works with other settings but these
two appeared reasonable.
I'd check if there is some rounding happening somewhere in your code.
Cheers,
Pavel