piXedfit_bin

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

Function for performing pixel binning, a proses of combining neighboring pixels to increase signal-to-noise ratios of the spatially resolved SEDs.

Parameters
  • fits_fluxmap – Input FITS file containing either photometric or spectrophotometric data cube.

  • ref_band – Index of a band/filter that will be used as a reference in finding the brightest pixels. The central pixel of a bin is the brightest pixel in this reference band. If ref_band=None, the ref_band is taken to be the middle band in the list of filters considered for the pixel binning.

  • Dmin_bin – (default: 2.0 pixels) Minimum diameter of a bin in unit of pixel.

  • SNR – (default: []) An array/list of S/N ratio thresholds in multiple 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 input SNR is empty, S/N of 5 is applied to all the filters.

  • redc_chi2_limit – (default: 4.0) A maximum of reduced chi-square for two SEDs are considered to have a similar shape.

  • del_r – (optional, default: 2 pixel) Increment of circular radius in the binning process.

  • name_out_fits – (defult: None) Desired name for the output FITS file.

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

Function for performing pixel binning to multiband images.

Parameters
  • images – Input images. This input should be in a list format.

  • var_images – Variance images. This input should be in a list format.

  • ref_band – Index of a band/filter that will be used as a reference in finding the brightest pixels. The central pixel of a bin is the brightest pixel in this reference band. If ref_band=None, the ref_band is taken to be the middle band in the list of filters considered for the pixel binning.

  • Dmin_bin – (default: 2.0 pixels) Minimum diameter of a bin in unit of pixel.

  • SNR – (default: []) An array/list of S/N ratio thresholds in multiple 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 input SNR is empty, S/N of 5 is applied to all the filters.

  • redc_chi2_limit – (default: 4.0) A maximum of reduced chi-square for two SEDs are considered to have a similar shape.

  • del_r – (optional, default: 2 pixel) Increment of circular radius in the binning process.

  • name_out_fits – (defult: None) Desired name for the output FITS file.