original_docstring: Compute the astronomical position angle of position 2 wrt to position 1.
  
      Inputs are expected in decimal degrees. Returns position angle in radians.
docstring: Compute the astronomical position angle of position 2 wrt to position 1.
  Inputs are expected in decimal degrees. Returns position angle in radians.
docstring_tokens: Compute the astronomical position angle of position 2 wrt to position 1 . Inputs are expected in decimal degrees . Returns position angle in radians .
code: def positionAngle(ra1, dec1, ra2, dec2):
      """Compute the astronomical position angle of position 2 wrt to position 1.
  
      Inputs are expected in decimal degrees. Returns position angle in radians."""
      ra1rad = ra1 * np.pi / 180.
      ra2rad = ra2 * np.pi / 180.
      dec1rad = dec1 * np.pi / 180.
      dec2rad = dec2 * np.pi / 180.
      radelta = ra2rad - ra1rad
      theta = np.arctan2(np.sin(radelta), np.cos(dec1rad) * np.tan(dec2rad)
                         - np.sin(dec1rad) * np.cos(radelta))
      return theta
code_tokens: def positionAngle ( ra1 , dec1 , ra2 , dec2 ) : ra1rad = ra1 * np . pi / 180. ra2rad = ra2 * np . pi / 180. dec1rad = dec1 * np . pi / 180. dec2rad = dec2 * np . pi / 180. radelta = ra2rad - ra1rad theta = np . arctan2 ( np . sin ( radelta ) , np . cos ( dec1rad ) * np . tan ( dec2rad ) - np . sin ( dec1rad ) * np . cos ( radelta ) ) return theta
short_docstring: Compute the astronomical position angle of position 2 wrt to position 1.
short_docstring_tokens: Compute the astronomical position angle of position 2 wrt to position 1 .
comment: """Compute the astronomical position angle of position 2 wrt to position 1.
  
      Inputs are expected in decimal degrees. Returns position angle in radians."""