fit_source

sitelle.fit.fit_source(xpos, ypos, cube, v_guess=None, return_v_guess=False, v_min=-800.0, v_max=100.0, **kwargs)

Fit a spectrum from a position in the cube. The spectrum is extracted inside a 3x3 pixels box, a guess of the velocity if performed, and the spectrum is fitted using fit_spectrum()

Parameters:
  • xpos (int) – abscisse of the source in the cube
  • ypos (int) – ordonate of the source in the cube
  • cube (SpectralCube) – The cube in which we want to extract and fit the spectrum.
  • v_guess (float) – (Optional) If None, a guess is performed using guess_source_velocity()
  • return_v_guess (bool, Default = False) – (Optional) If True, returns the guessed velocity value.
  • v_min (float) – (Optional) v_min used by guess_source_velocity(). Default = -800
  • v_max (float) – (Optional) v_max used by guess_source_velocity(). Default = 100
  • kwargs (dict) – Additional keyword arguments to be passed to fit_spectrum()