MICADO FAQs

A collection of random code snippets that might help someone. One day they will be sorted into the docs properly

Add a larger SCAO PSF instead of the default kernel

[1]:
import scopesim
from scopesim.effects import AnisocadoConstPSF

wide_psf = AnisocadoConstPSF(name="Wide_SCAO_PSF",
                             filename="MICADO/MICADO_AnisoCADO_rms_map.fits",
                             strehl=0.5,
                             wavelength=2.15,
                             psf_side_length=2048)

cmds = scopesim.UserCommands(use_instrument="MICADO", set_modes=["SCAO", "IMG_1.5mas"])
micado = scopesim.OpticalTrain(cmds)

micado.optics_manager["default_ro"].add_effect(wide_psf)

micado["relay_psf"].include = False
micado["Wide_SCAO_PSF"].include = True