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:
objectInitialize 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,
PixelFittercan 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 :
QuantityAn array of frequencies to be converted to Hz and passed to the fitter
flux :
QuantityAn array of
u.MJyequivalent flux valueserr :
QuantityAn array of
u.MJyequivalent flux values that specify the errors on flux
-