webbpsf_ext.coords.rtheta_to_xy

webbpsf_ext.coords.rtheta_to_xy(r, theta)[source]

Convert (r,theta) to (x,y)

Input polar cooridnates (WebbPSF convention) and return Carteesian coords in the imaging coordinate system (as opposed to RA/DEC)

Input can either be a single value or numpy array.

Parameters
  • r (float or array) – Radial offset from the center in pixels

  • theta (float or array) – Position angle for offset in degrees CCW (+Y).