sunpy.wcs.convert_hpc_hcc(x, y, dsun_meters=None, angle_units='arcsec', z=False)[source] [edit on github]

Deprecated since version 0.8.0: The convert_hpc_hcc function is deprecated and may be removed in a future version. Use sunpy.coordinates instead.

Converts from Helioprojective-Cartesian (HPC) coordinates into Heliocentric-Cartesian (HCC) coordinates. Returns all three dimensions, x, y, z in meters.

  • y (x,) – Data coordinate in angle units (default is arcsec)
  • dsun_meters (float) – Distance from the observer to the Sun in meters. Default is 1 AU.
  • angle_units (str) – Units of the data coordinates (e.g. arcsec, arcmin, degrees). Default is arcsec.
  • z (Bool) – If true return the z coordinate as well.

out (ndarray) – The data coordinates (x,y,z) in heliocentric cartesian coordinates in meters.


Implements Eq. (15) of Thompson (2006), A&A, 449, 791.


>>> import sunpy.wcs
>>> sunpy.wcs.convert_hpc_hcc(40.0, 32.0, z=True)
(28876152.176423457, 23100922.07126697, 694524220.8157959)