docs: def solar_constant(self):
          """Calculate the solar constant"""
          if self.wavenumber is not None:
              return np.trapz(self.irradiance, self.wavenumber)
          elif self.wavelength is not None:
              return np.trapz(self.irradiance, self.wavelength)
          else:
              raise TypeError('Neither wavelengths nor wavenumbers available!')