|
lsst.synpipe
15.0-4-g9ee0f43
|
Classes | |
| class | SkyMapIdContainer |
Functions | |
| def | cropFakeImage (fakeImage, expBBox) |
| def | addNoise (galImage, detector, rand_gen=None) |
| def lsst.synpipe.FakeSourceLib.addNoise | ( | galImage, | |
| detector, | |||
rand_gen = None |
|||
| ) |
adds noise to the the image and returns a variance plane
INPUT: image to add noise to
detector where the image will be located, this sets the gain
NOTE: this assumes float type images and will break if given doubles
RETURN: a MaskedImageF with the image with additional noise and the
variance plane
giving the variance due to the object
Definition at line 65 of file FakeSourceLib.py.
| def lsst.synpipe.FakeSourceLib.cropFakeImage | ( | fakeImage, | |
| expBBox | |||
| ) |
Crops the Fake image to fit inside the exposure BBox
Note that the bboxes need to have the correct offsets applied
Args:
fakeImage: fake image object
expBBox: bounding box for CCD exposure (integer type, BBoxI)
and with offsets applied
Returns:
New cropped fake image
Definition at line 43 of file FakeSourceLib.py.
1.8.13