make_foreign_PSF_cube¶
-
simcado.psf.
make_foreign_PSF_cube
(fnames, out_name=None, window=None, pix_res_orig=None, pix_res_final=None, wavelengths=None)[source]¶ Combine several PSF FITS images into a single PSF FITS file
- Parameters
- fnameslist
List of path names to the FITS files
- out_namestr, optional
If out_name is not
None
, the resulting FITS file is saved under the nameout_name
- windowint, list, tuple, optional
If window is not
None
, a windowed section of the PSFs are extracted window = (left, right, top, bottom) window = square radius
Examples
>>> from glob import glob >>> import simcado as sim >>> fnames = glob("D:\Share_VW\Data_for_SimCADO\PSFs\yann_2016_11_10\*.fits") >>> sim.psf.make_foreign_PSF_cube(fnames, "PSF_SCAO.fits", window=512, pix_res_orig=[0.0028, 0.0037, 0.00492], pix_res_final=[0.004, 0.004, 0.004], wavelengths=[1.25,1.65,2.2])