# PixelFitter¶

class higal_sedfitter.fit.PixelFitter(tguess=20, bguess=1.75, nguess=1e+22, trange=[2.73, 50], brange=[1, 3], nrange=[1e+20, 1e+25], tfixed=False, bfixed=False, nfixed=False)[source]

Bases: object

Initialize an SED fitter instance with a set of guesses. The input parameters follow a template that is the same for each of temperature, beta, and column.

Once initialized, PixelFitter can be called as a function of frequency (Hz), flux (MJy), and error (MJy)

Parameters: guess : float The guessed value for T,N, or beta. Temperature in Kelvin, column in $$cm^{-2}$$ range : tuple or list of length 2 The minimum/maximum values of each parameter fixed : bool Is the parameter fixed at the guessed value?

Methods Summary

 __call__(frequency, flux, err) Perform the fit and return a tuple of values & errors integral(fmin, fmax) Compute the integral of the currently-fitted parameters

Methods Documentation

__call__(frequency, flux, err)[source]

Perform the fit and return a tuple of values & errors

Parameters: frequency : Quantity An array of frequencies to be converted to Hz and passed to the fitter flux : Quantity An array of u.MJy equivalent flux values An array of u.MJy equivalent flux values that specify the errors on flux
integral(fmin, fmax)[source]

Compute the integral of the currently-fitted parameters

Parameters: fmin, fmax : Quantity Frequency-equivalent start and end points for the integral The SED integrated in units of bbunit = u.erg/u.s/u.cm**2