punchbowl.data.units#
Attributes#
Functions#
|
Calculate the sky area of every pixel in an image according to its WCS. |
|
Convert mean solar brightness to DNs. |
|
Convert DN to mean solar brightness. |
Module Contents#
- punchbowl.data.units.MSB#
- punchbowl.data.units.calculate_image_pixel_area(wcs: astropy.wcs.WCS, data_shape: tuple[int, int]) astropy.units.sr#
Calculate the sky area of every pixel in an image according to its WCS.
- punchbowl.data.units.msb_to_dn(data: numpy.ndarray, data_wcs: astropy.wcs.WCS, gain: float = 4.9 * u.photon / u.DN, wavelength: float = 530.0 * u.nm, exposure: float = 49 * u.s, aperture: float = 49.57 * u.mm**2) numpy.ndarray#
Convert mean solar brightness to DNs.
- punchbowl.data.units.dn_to_msb(data: numpy.ndarray, data_wcs: astropy.wcs.WCS, gain: float = 4.9 * u.photon / u.DN, wavelength: float = 530.0 * u.nm, exposure: float = 49 * u.s, aperture: float = 34 * u.mm**2) numpy.ndarray#
Convert DN to mean solar brightness.