Changeset 114 for trunk/SRC/ToBeReviewed/PLOTS/DIVERS/rotation.pro
- Timestamp:
- 06/19/06 16:14:56 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/ToBeReviewed/PLOTS/DIVERS/rotation.pro
r37 r114 28 28 29 29 PRO ROTATION,X,Y,DEG,NX,NY 30 ; 31 compile_opt idl2, strictarrsubs 32 ; 30 33 ang=deg*!dtor 31 34 … … 35 38 ;get angle in for loop so that zero radii will be left as zero angle 36 39 for i = 0,n_elements(r)-1 do $ 37 if r (i) ne 0 then theta(i) = atan(y(i),x(i)) ;range from -pi to +pi40 if r[i] ne 0 then theta[i] = atan(y[i],x[i]) ;range from -pi to +pi 38 41 ; 39 42 ;add rotation angle
Note: See TracChangeset
for help on using the changeset viewer.