Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LAM-GRD-public
maoppy
Commits
31dc34f4
Commit
31dc34f4
authored
May 30, 2021
by
rfetick
Browse files
set again the numerical normalization
parent
6eb717f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
maoppy/psfmodel.py
View file @
31dc34f4
...
...
@@ -694,7 +694,7 @@ class Psfao(ParametricPSFfromPSD):
removeInside
=
(
1
+
_np
.
sqrt
(
2
))
/
2
*
self
.
_pix2freq
/
2
# remove central pixel in energy computation
moff
=
moffat
(
f2D
,
param
,
norm
=
Fao
,
removeInside
=
removeInside
)
*
(
F2
<
Fao
**
2.
)
moff
[
nx0
,
ny0
]
=
0.0
# Set Moffat PSD = 0 at null frequency
#
moff = moff / (_np.sum(moff)*self._pix2freq**2) # normalize moffat numerically to get correct A=sigma² in the AO zone
moff
=
moff
/
(
_np
.
sum
(
moff
)
*
self
.
_pix2freq
**
2
)
# normalize moffat numerically to get correct A=sigma² in the AO zone
# Warning: Moffat numerical normalization generates strehlOTF jump when "_k" is changed
PSD
+=
(
F2
<
Fao
**
2.
)
*
_np
.
abs
(
C
+
A
*
moff
)
# before I wrote "moffat(f2D,param,norm=Fao)" instead of "moff", so no numerical normalization
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment