webbpsf_ext.coords.radec_offset¶
- webbpsf_ext.coords.radec_offset(ra, dec, dist, pos_ang)[source]¶
Return (RA, Dec) of a position offset relative to some input (RA, Dec).
- Parameters
RA (float) – Input RA in deg.
Dec (float) – Input Dec in deg.
dist (float) – Angular distance in arcsec. Can also be an array of distances.
pos_ang (float) – Position angle (positive angles East of North) in degrees. Can also be an array; must match size of dist.
- Returns
Two elements, RA and Dec of calculated offsets in dec degrees.
If multiple offsets specified, then this will be two arrays
of RA and Dec, where eac array has the same size as inputs.