save_binned_data_arr#
- niriss_tools.sed.save_binned_data_arr(bin_labels, data_path, out_path, signal_hdu_idxs, noise_hdu_idxs=None, var_hdu_idxs=None, crop=None)[source]#
Create a binned photometric catalogue from a segmentation map.
Realistically, this needs to be better thought out. Unlikely that the input will be MEF, highly likely that it’ll be combined from multiple single FITS files.
- Parameters:
- bin_labels
ArrayLike A 2D
intarray, containing the bin label assigned to each element of the input arrays.- data_path
PathLike The multi-extension fits file containing the data to be binned.
- out_path
PathLike The path to save the output.
- signal_hdu_idxs
ArrayLike The indices of the HDUs containing the direct images.
- noise_hdu_idxs
ArrayLike|None, optional The indices of the HDUs containing the noise images. One of
noise_hdu_idxsandvar_hdu_idxsmust be given.- var_hdu_idxs
ArrayLike|None, optional The indices of the HDUs containing the variance images.
- crop
tuple|None, optional A crop to be applied to the images before applying the binning scheme, by default None.
- bin_labels