check_source

sitelle.source.check_source(x, y, spectral_cube, frame=None, smooth_factor=None)

Helper function to quickly look at a source We extract the source at positon (x,y) with extract_point_source() and plot the resulting spectra. We also plot a map around the source, to check if we actually detect something.

Parameters:
  • x (int) – Abscisse position, in pixels
  • y (int) – Ordinate position, in pixels
  • spectral_cube (SpectralCube) – SpectralCube instance where we are looking at the source
  • frame (2D ndarray, int) – (Optional) Frame to plot the detection on. If None, the deep_frame is used. If frame in as integer, we plot on the sum of the frames around this index in the cube
  • smooth_factor (int) – (Optional) Factor used to smooth the spectrum (see orb.utils.vector.smooth())