Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/JarronL/pynrc
Browse files Browse the repository at this point in the history
  • Loading branch information
JarronL committed Sep 27, 2019
2 parents adc55d4 + 8601f8c commit e35603a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pynrc/pynrc_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1574,7 +1574,7 @@ def bg_zodi(self, zfact=None, **kwargs):

return fzodi_pix

def saturation_levels(self, sp, full_size=True, ngroup=2, **kwargs):
def saturation_levels(self, sp, full_size=True, ngroup=2, image=None, **kwargs):
"""Saturation levels.
Create image showing level of saturation for each pixel.
Expand All @@ -1596,6 +1596,9 @@ def saturation_levels(self, sp, full_size=True, ngroup=2, **kwargs):
which is the very first frame that is read-out and saved
separately. This is the equivalent to ngroup=1 for RAPID
and BRIGHT1 observations.
image : ndarray
Rather than generating an image on the fly, pass a pre-computed
slope image. Overrides `sp` and `full_size`
"""

Expand All @@ -1618,7 +1621,7 @@ def saturation_levels(self, sp, full_size=True, ngroup=2, **kwargs):
if t_sat>t_int:
_log.warning('ngroup*t_group is greater than t_int.')

# Slope image of input source
# Slope image of input
if image is not None:
return image * t_sat / self.well_level
else:
Expand Down

0 comments on commit e35603a

Please sign in to comment.