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
f46feb9e
Commit
f46feb9e
authored
Apr 07, 2021
by
rfetick
Browse files
Add Strehl computation
parent
a50a9a65
Changes
1
Hide whitespace changes
Inline
Side-by-side
maoppy/psfmodel.py
View file @
f46feb9e
...
@@ -477,6 +477,15 @@ class ParametricPSFfromPSD(ParametricPSF):
...
@@ -477,6 +477,15 @@ class ParametricPSFfromPSD(ParametricPSF):
f2D
*=
self
.
getpix2freq
()
f2D
*=
self
.
getpix2freq
()
return
f2D
return
f2D
def
strehlOTF
(
self
,
x0
):
otf
=
self
.
otf
(
x0
,
_caller
=
'self'
)
otf_diff
=
self
.
_otf_diffraction
()
return
_np
.
real
(
_np
.
sum
(
otf
)
/
_np
.
sum
(
otf_diff
))
def
strehlMarechal
(
self
,
x0
):
_
,
sig2
=
self
.
psd
(
x0
)
return
_np
.
exp
(
-
sig2
)
def
psd
(
self
,
x0
):
def
psd
(
self
,
x0
):
raise
ValueError
(
"ParametricPSFfromPSD is not to be instantiated. the `psd` method must be override in the subclasses"
)
raise
ValueError
(
"ParametricPSFfromPSD is not to be instantiated. the `psd` method must be override in the subclasses"
)
...
...
Write
Preview
Supports
Markdown
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