calc_full_var#
- niriss_tools.isophotal.calc_full_var(sci_path, wht_path, exp_path, sci_hdu_index=0, wht_hdu_index=0, exp_hdu_index=0, compress=True, overwrite=False)[source]#
Calculate the full variance array from “sci”, “wht”, and “exp” images.
These images are assumed to have been processed by
grizli. The “exp” image can be reconstructed from a downsampled array if necessary. The output array will be saved to the same directory as exp_path.- Parameters:
- sci_path
PathLike The path of the science image, containing the measured fluxes.
- wht_path
PathLike The path of the weight image, containing the inverse variance from the sky and read noise.
- exp_path
PathLike The path of the exposure image, containing the exposure time map.
- sci_hdu_index
int, optional The index of the HDU containing the science image, by default 0.
- wht_hdu_index
int, optional The index of the HDU containing the weight image, by default 0.
- exp_hdu_index
int, optional The index of the HDU containing the exposure time map, by default 0.
- compressbool, optional
If True (default), the output file will be compressed and saved with the extension “.fits.gz”.
- overwritebool, optional
Overwrite the file if it exists already, by default False.
- sci_path
- Returns:
PathLikeThe path of the new variance array.