piXedfit_bin

piXedfit.piXedfit_bin.pixel_binning(fits_fluxmap, ref_band=None, Dmin_bin=4.0, SNR=None, redc_chi2_limit=4.0, del_r=2.0, name_out_fits=None)

Function for pixel binning, a proses of combining neighboring pixels to optimize the signal-to-noise ratios of the spatially resolved SEDs. Input of this function is a data cube obtained from the image processing or spectrophotometric processing.

Parameters
  • fits_fluxmap – Input FITS file containing the photometric or spectrophotometric data cube. The photometric data cube is obtained from the image processing with the images_processing() function, while the spectrophotmetric data cube is the output of function match_imgifs_spectral().

  • ref_band – Index of the reference band (filter) for sorting pixels based on the brightness. The central pixel of a bin is the brightest pixel in this reference band. If ref_band=None, the ref_band is chosen to be around the middle of the wavelength covered by the observed SEDs.

  • Dmin_bin – Minimum diameter of a bin in unit of pixel.

  • SNR – S/N thresholds in all bands. The length of this array should be the same as the number of bands in the fits_fluxmap. S/N threshold can vary across the filters. If SNR is None, the S/N is set as 5.0 to all the filters.

  • redc_chi2_limit – A maximum reduced chi-square value for a pair of two SEDs to be considered as having a similar shape.

  • del_r – Increment of circular radius (in unit of pixel) adopted in the pixel binning process.

  • name_out_fits – Desired name for the output FITS file. If None, a default name is adopted.

piXedfit.piXedfit_bin.pixel_binning_images(images, var_images, ref_band=None, Dmin_bin=2.0, SNR=None, redc_chi2_limit=4.0, del_r=2.0, name_out_fits=None)

Function for pixel binning on multiband image.

Parameters
  • images – Input science images. This input should be in a list format, such as images=[‘image1.fits’, ‘image2.fits’, ‘image3.fits’]

  • var_images – Variance images in a list format. The number of variance images should be the same as that of the input science images.

  • ref_band – Index of the reference band (filter) for sorting pixels based on the brightness. The central pixel of a bin is the brightest pixel in this reference band. If ref_band=None, the ref_band is chosen to be around the middle of the wavelength covered by the observed SEDs.

  • Dmin_bin – Minimum diameter of a bin in unit of pixel.

  • SNR – S/N thresholds in all bands. The length of this array should be the same as the number of bands in the fits_fluxmap. S/N threshold can vary across the filters. If SNR is None, the S/N is set as 5.0 to all the filters.

  • redc_chi2_limit – A maximum reduced chi-square value for a pair of two SEDs to be considered as having a similar shape.

  • del_r – Increment of circular radius (in unit of pixel) adopted in the pixel binning process.

  • name_out_fits – Desired name for the output FITS file. If None, a default name is adopted.