Skip to content
Snippets Groups Projects
Commit 7aa1235b authored by FETICK Romain's avatar FETICK Romain
Browse files

Add Muse PSF example

parent 68d07df8
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 24 15:18:38 2019
@author: rfetick
"""
import matplotlib.pyplot as plt
import numpy as np
from maoppy.psfmodel import Psfao
from maoppy.instrument import MUSE_NFM
Npix = 128 # pixel size of PSF
wvl = 600*1e-9 # wavelength [m]
#%% Initialize PSF model
samp = MUSE_NFM.samp(wvl) # sampling (2.0 for Shannon-Nyquist)
Pmodel = Psfao((Npix,Npix),system=MUSE_NFM,symmetric=True,samp=samp)
#%% Choose parameters and compute PSF
r0 = 0.15 # Fried parameter [m]
bck = 1e-7 # Phase PSD background [rad² m²]
amp = 1.4 # Phase PSD Moffat amplitude [rad²]
ax = 0.1 # Phase PSD Moffat alpha [1/m]
beta = 1.6 # Phase PSD Moffat beta power law
param = [r0,bck,amp,ax,beta]
psf = Pmodel(param)
#%% Plot results
plt.figure(1)
plt.clf()
plt.pcolormesh(np.log(psf))
plt.axis('image')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment