rotate_ra_dec¶
- rubin_sim.scheduler.utils.rotate_ra_dec(ra, dec, ra_target, dec_target, init_rotate=0.0)¶
Rotate ra and dec coordinates to be centered on a new dec.
Rotates around the x-axis 1st, then to the dec, then ra.
- Parameters:
- rafloat or np.array
RA coordinate(s) to be rotated in radians
- decfloat or np.array
Dec coordinate(s) to be rotated in radians
- ra_rotationfloat
RA distance to rotate in radians
- dec_targetfloat
Dec distance to rotate in radians
- init_rotatefloat (0.)
The amount to rotate the points around the x-axis first (radians).