convert_hg_hpc

sunpy.wcs.convert_hg_hpc(hglon_deg, hglat_deg, b0_deg=0, l0_deg=0, dsun_meters=None, angle_units='arcsec', occultation=False)[source] [edit on github]

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

Convert from Heliographic coordinates (HG) to Helioprojective-Cartesian (HPC).

Parameters:
  • hglat_deg (hglon_deg,) – Heliographic longitude and latitude in degrees.
  • b0_deg (float (degrees)) – Tilt of the solar North rotational axis toward the observer (heliographic latitude of the observer). Usually given as SOLAR_B0, HGLT_OBS, or CRLT_OBS. Default is 0.
  • l0_deg (float (degrees)) – Carrington longitude of central meridian as seen from Earth. Default is 0.
  • occultation (Bool) – If true set all points behind the Sun (e.g. not visible) to Nan.
  • dsun_meters (float (meters)) – Distance between the observer and the Sun.
  • angle_units (str) –
Returns:

out (ndarray (arcsec)) – The data coordinates (x,y) in Helioprojective-Cartesian coordinates.

Notes

Uses equations 11 and 16 in Thompson (2006), A&A, 449, 791-803.

Examples

>>> import sunpy.wcs
>>> sunpy.wcs.convert_hg_hpc(34.0, 45.0, b0_deg=-7.064078, l0_deg=0.0)
(380.056565603089, 743.7828128329002)