docs: def ToVegaMag(self, wave, flux, **kwargs):
          """Convert to ``vegamag``.
  
          .. math::
  
              \\textnormal{vegamag} = -2.5 \\; \\log(\\frac{\\textnormal{photlam}}{f_{\\textnormal{Vega}}})
  
          where :math:`f_{\\textnormal{Vega}}` is the flux of
          :ref:`pysynphot-vega-spec` resampled at given wavelength values
          and converted to ``photlam``.
  
          Parameters
          ----------
          wave, flux : number or array_like
              Wavelength and flux values to be used for conversion.
  
          kwargs : dict
              Extra keywords (not used).
  
          Returns
          -------
          result : number or array_like
              Converted values.
  
          """
          from . import spectrum
          resampled = spectrum.Vega.resample(wave)
          normalized = flux / resampled._fluxtable
          return -2.5 * N.log10(normalized)