Skip to content

Commit

Permalink
Merge pull request #40 from GalSim-developers/imsim_bkg_noise
Browse files Browse the repository at this point in the history
Imsim bkg noise
  • Loading branch information
aguinot authored Jul 26, 2024
2 parents baafb88 + 69fbb9f commit 894e4fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion euclidlike_imsim/ccd.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ def addNoise(self, image, config, base, image_num, obj_num, current_var, logger)
# value added to sky_image. So technically, this includes things that aren't just sky.
# E.g. includes dark_current and thermal backgrounds.
sky_image = image.copy()
sky_level = euclidlike.getSkyLevel(bp, world_pos=wcs.toWorld(image.true_center))
sky_level = euclidlike.getSkyLevel(
bp,
world_pos=wcs.toWorld(image.true_center),
date=Time(self.mjd, format="mjd").datetime,
)
logger.debug("Adding sky_level = %s", sky_level)
if self.stray_light:
logger.debug("Stray light fraction = %s", stray_light_fraction)
Expand Down

0 comments on commit 894e4fc

Please sign in to comment.