punchbowl.data.wcs#

Attributes#

Functions#

extract_crota_from_wcs(→ astropy.units.deg)

Extract CROTA from a WCS.

calculate_helio_wcs_from_celestial(wcs_celestial, ...)

Calculate the helio WCS from a celestial WCS.

get_sun_ra_dec(dt, float)

Get the position of the Sun in right ascension and declination.

calculate_pc_matrix() → numpy.ndarray)

Calculate a PC matrix given CROTA and CDELT.

_times_are_equal(→ bool)

get_p_angle(→ astropy.units.deg)

Get the P angle.

hpc_to_gcrs(HPcoord, GCRSframe)

Convert helioprojective to GCRS.

gcrs_to_hpc(GCRScoord, Helioprojective)

Convert GCRS to HPC.

calculate_celestial_wcs_from_helio(→ astropy.wcs.WCS)

Calculate the celestial WCS from a helio WCS.

load_trefoil_wcs() →)

Load Level 2 trefoil world coordinate system and shape.

load_quickpunch_mosaic_wcs() →)

Load Level quickPUNCH mosaic world coordinate system and shape.

load_quickpunch_nfi_wcs() →)

Load Level quickPUNCH NFI world coordinate system and shape.

Module Contents#

punchbowl.data.wcs._ROOT#
punchbowl.data.wcs.PUNCH_STOKES_MAPPING#
punchbowl.data.wcs.extract_crota_from_wcs(wcs: astropy.wcs.WCS) astropy.units.deg#

Extract CROTA from a WCS.

punchbowl.data.wcs.calculate_helio_wcs_from_celestial(wcs_celestial: astropy.wcs.WCS, date_obs: datetime.datetime, data_shape: tuple[int, int])#

Calculate the helio WCS from a celestial WCS.

punchbowl.data.wcs.get_sun_ra_dec(dt: datetime.datetime)#

Get the position of the Sun in right ascension and declination.

punchbowl.data.wcs.calculate_pc_matrix(crota: float, cdelt: float, float) numpy.ndarray#

Calculate a PC matrix given CROTA and CDELT.

Parameters:
  • crota (float) – rotation angle from the WCS

  • cdelt (float) – pixel size from the WCS

Returns:

PC matrix

Return type:

np.ndarray

punchbowl.data.wcs._times_are_equal(time_1: astropy.time.Time, time_2: astropy.time.Time) bool#
punchbowl.data.wcs.get_p_angle(time: str = 'now') astropy.units.deg#

Get the P angle.

Return the position (P) angle for the Sun at a specified time, which is the angle between geocentric north and solar north as seen from Earth, measured eastward from geocentric north. The range of P is +/-26.3 degrees.

Parameters:

time ({parse_time_types}) – Time to use in a parse_time-compatible format

Returns:

out – The position angle

Return type:

~astropy.coordinates.Angle

punchbowl.data.wcs.hpc_to_gcrs(HPcoord, GCRSframe)#

Convert helioprojective to GCRS.

punchbowl.data.wcs.gcrs_to_hpc(GCRScoord, Helioprojective)#

Convert GCRS to HPC.

punchbowl.data.wcs.calculate_celestial_wcs_from_helio(wcs_helio: astropy.wcs.WCS, date_obs: datetime.datetime, data_shape: tuple[int, int]) astropy.wcs.WCS#

Calculate the celestial WCS from a helio WCS.

punchbowl.data.wcs.load_trefoil_wcs()#

Load Level 2 trefoil world coordinate system and shape.

punchbowl.data.wcs.load_quickpunch_mosaic_wcs()#

Load Level quickPUNCH mosaic world coordinate system and shape.

punchbowl.data.wcs.load_quickpunch_nfi_wcs()#

Load Level quickPUNCH NFI world coordinate system and shape.