ra_dec2_alt_az

rubin_sim.maf.stackers.ra_dec2_alt_az(ra, dec, lat, lon, mjd, altonly=False)

Convert RA/Dec (and telescope site lat/lon) to alt/az.

This uses simple equations and ignores aberation, precession, nutation, etc.

Parameters:
raarray_like

RA, in radians.

decarray_like

Dec, in radians. Must be same length as ra.

latfloat

Latitude of the observatory in radians.

lonfloat

Longitude of the observatory in radians.

mjdfloat

Modified Julian Date.

altonlybool, optional

Calculate altitude only.

Returns:
altnumpy.array

Altitude, same length as ra and dec. Radians.

aznumpy.array

Azimuth, same length as ra and dec. Radians.