tuskitoo.SpectralExtraction.spectra_2d module
- class Spectra_2D(object, center_cut=None, size_cut=None, distances=None, verbose=False)[source]
Bases:
objectLittle class to handle 2D image of spectra
- static cut_2d_image(image, center=None, size=None, verbose=False)[source]
Cut a 2D image to the specified region.
Parameters:
- imagearray-like
The input 2D image to be cut.
- centerint or None, optional, default=None
The center position for cutting the 2D image. If None, the center will be estimated.
- sizeint or None, optional, default=None
The size of the cut-out region. If None, a default size of 70 will be used.
- verbosebool, optional, default=False
If True, print additional information during processing.
Returns:
- array-like
The cut-out 2D image.