LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
|
Public Member Functions | |
__init__ (self, **kwargs) | |
run (self) | |
makeData (self) | |
makeBfKernel (self) | |
makeDefectList (self) | |
makeCrosstalkCoeff (self) | |
makeTransmissionCurve (self) | |
makeImage (self) | |
getCamera (self) | |
getExposure (self) | |
getWcs (self) | |
localCoordToExpCoord (self, ampData, x, y) | |
amplifierAddNoise (self, ampData, mean, sigma) | |
amplifierAddYGradient (self, ampData, start, end) | |
amplifierAddSource (self, ampData, scale, x0, y0) | |
amplifierAddCT (self, ampDataSource, ampDataTarget, scale) | |
amplifierAddFringe (self, amp, ampData, scale, x0=100, y0=0) | |
amplifierMultiplyFlat (self, amp, ampData, fracDrop, u0=100.0, v0=100.0) | |
Public Attributes | |
rng | |
crosstalkCoeffs | |
bfKernel | |
Static Public Attributes | |
ConfigClass = IsrMockConfig | |
Static Protected Attributes | |
str | _DefaultName = "isrMock" |
Class to generate consistent mock images for ISR testing. ISR testing currently relies on one-off fake images that do not accurately mimic the full set of detector effects. This class uses the test camera/detector/amplifier structure defined in `lsst.afw.cameraGeom.testUtils` to avoid making the test data dependent on any of the actual obs package formats.
Definition at line 254 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.__init__ | ( | self, | |
** | kwargs ) |
Reimplemented in lsst.ip.isr.isrMock.RawMock, lsst.ip.isr.isrMock.TrimmedRawMock, lsst.ip.isr.isrMock.CalibratedRawMock, lsst.ip.isr.isrMock.RawDictMock, lsst.ip.isr.isrMock.MasterMock, lsst.ip.isr.isrMock.BiasMock, lsst.ip.isr.isrMock.DarkMock, lsst.ip.isr.isrMock.FlatMock, lsst.ip.isr.isrMock.FringeMock, lsst.ip.isr.isrMock.UntrimmedFringeMock, lsst.ip.isr.isrMock.BfKernelMock, lsst.ip.isr.isrMock.DefectMock, lsst.ip.isr.isrMock.CrosstalkCoeffMock, lsst.ip.isr.isrMock.TransmissionMock, lsst.ip.isr.isrMockLSST.IsrMockLSST, lsst.ip.isr.isrMockLSST.RawMockLSST, lsst.ip.isr.isrMockLSST.TrimmedRawMockLSST, lsst.ip.isr.isrMockLSST.CalibratedRawMockLSST, lsst.ip.isr.isrMockLSST.ReferenceMockLSST, lsst.ip.isr.isrMockLSST.DarkMockLSST, lsst.ip.isr.isrMockLSST.BiasMockLSST, lsst.ip.isr.isrMockLSST.FlatMockLSST, lsst.ip.isr.isrMockLSST.FringeMockLSST, lsst.ip.isr.isrMockLSST.BfKernelMockLSST, lsst.ip.isr.isrMockLSST.DefectMockLSST, lsst.ip.isr.isrMockLSST.CrosstalkCoeffMockLSST, and lsst.ip.isr.isrMockLSST.TransmissionMockLSST.
Definition at line 266 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.amplifierAddCT | ( | self, | |
ampDataSource, | |||
ampDataTarget, | |||
scale ) |
Add a scaled copy of an amplifier to another, simulating crosstalk. This method operates in the amplifier coordinate frame. Parameters ---------- ampDataSource : `lsst.afw.image.ImageF` Amplifier image to add scaled copy from. ampDataTarget : `lsst.afw.image.ImageF` Amplifier image to add scaled copy to. scale : `float` Flux scale of the copy to add to the target. Notes ----- This simulates simple crosstalk between amplifiers.
Definition at line 731 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.amplifierAddFringe | ( | self, | |
amp, | |||
ampData, | |||
scale, | |||
x0 = 100, | |||
y0 = 0 ) |
Add a fringe-like ripple pattern to an amplifier's image data. Parameters ---------- amp : `~lsst.afw.ampInfo.AmpInfoRecord` Amplifier to operate on. Needed for amp<->exp coordinate transforms. ampData : `lsst.afw.image.ImageF` Amplifier image to operate on. scale : `numpy.array` or `float` Peak intensity scaling for the ripple. x0 : `numpy.array` or `float`, optional Fringe center y0 : `numpy.array` or `float`, optional Fringe center Notes ----- This uses an offset sinc function to generate a ripple pattern. True fringes have much finer structure, but this pattern should be visually identifiable. The (x, y) coordinates are in the frame of the amplifier, and (u, v) in the frame of the full trimmed image.
Definition at line 753 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.amplifierAddNoise | ( | self, | |
ampData, | |||
mean, | |||
sigma ) |
Add Gaussian noise to an amplifier's image data. This method operates in the amplifier coordinate frame. Parameters ---------- ampData : `lsst.afw.image.ImageF` Amplifier image to operate on. mean : `float` Mean value of the Gaussian noise. sigma : `float` Sigma of the Gaussian noise.
Definition at line 673 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.amplifierAddSource | ( | self, | |
ampData, | |||
scale, | |||
x0, | |||
y0 ) |
Add a single Gaussian source to an amplifier. This method operates in the amplifier coordinate frame. Parameters ---------- ampData : `lsst.afw.image.ImageF` Amplifier image to operate on. scale : `float` Peak flux of the source to add. x0 : `float` X-coordinate of the source peak. y0 : `float` Y-coordinate of the source peak.
Definition at line 710 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.amplifierAddYGradient | ( | self, | |
ampData, | |||
start, | |||
end ) |
Add a y-axis linear gradient to an amplifier's image data. This method operates in the amplifier coordinate frame. Parameters ---------- ampData : `lsst.afw.image.ImageF` Amplifier image to operate on. start : `float` Start value of the gradient (at y=0). end : `float` End value of the gradient (at y=ymax).
Definition at line 691 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.amplifierMultiplyFlat | ( | self, | |
amp, | |||
ampData, | |||
fracDrop, | |||
u0 = 100.0, | |||
v0 = 100.0 ) |
Multiply an amplifier's image data by a flat-like pattern. Parameters ---------- amp : `lsst.afw.ampInfo.AmpInfoRecord` Amplifier to operate on. Needed for amp<->exp coordinate transforms. ampData : `lsst.afw.image.ImageF` Amplifier image to operate on. fracDrop : `float` Fractional drop from center to edge of detector along x-axis. u0 : `float` Peak location in detector coordinates. v0 : `float` Peak location in detector coordinates. Notes ----- This uses a 2-d Gaussian to simulate an illumination pattern that falls off towards the edge of the detector. The (x, y) coordinates are in the frame of the amplifier, and (u, v) in the frame of the full trimmed image.
Definition at line 785 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.getCamera | ( | self | ) |
Construct a test camera object. Returns ------- camera : `lsst.afw.cameraGeom.camera` Test camera.
Definition at line 502 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.getExposure | ( | self | ) |
Construct a test exposure. The test exposure has a simple WCS set, as well as a list of unlikely header keywords that can be removed during ISR processing to exercise that code. Returns ------- exposure : `lsst.afw.exposure.Exposure` Construct exposure containing masked image of the appropriate size.
Definition at line 518 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.getWcs | ( | self | ) |
Construct a dummy WCS object. Taken from the deprecated ip_isr/examples/exampleUtils.py. This is not guaranteed, given the distortion and pixel scale listed in the afwTestUtils camera definition. Returns ------- wcs : `lsst.afw.geom.SkyWcs` Test WCS transform.
Definition at line 625 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.localCoordToExpCoord | ( | self, | |
ampData, | |||
x, | |||
y ) |
Convert between a local amplifier coordinate and the full exposure coordinate. Parameters ---------- ampData : `lsst.afw.image.ImageF` Amplifier image to use for conversions. x : `int` X-coordinate of the point to transform. y : `int` Y-coordinate of the point to transform. Returns ------- u : `int` Transformed x-coordinate. v : `int` Transformed y-coordinate. Notes ----- The output is transposed intentionally here, to match the internal transpose between numpy and afw.image coordinates.
Definition at line 642 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.makeBfKernel | ( | self | ) |
Generate a simple Gaussian brighter-fatter kernel. Returns ------- kernel : `numpy.ndarray` Simulated brighter-fatter kernel.
Definition at line 338 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.makeCrosstalkCoeff | ( | self | ) |
Generate the simulated crosstalk coefficients. Returns ------- coeffs : `numpy.ndarray` Simulated crosstalk coefficients.
Definition at line 359 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.makeData | ( | self | ) |
Generate simulated ISR data. Currently, only the class defined crosstalk coefficient matrix, brighter-fatter kernel, a constant unity transmission curve, or a simple single-entry defect list can be generated. Returns ------- dataProduct : Simulated ISR data product.
Definition at line 310 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.makeDefectList | ( | self | ) |
Generate a simple single-entry defect list. Returns ------- defectList : `lsst.meas.algorithms.Defects` Simulated defect list
Definition at line 348 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.makeImage | ( | self | ) |
Generate a simulated ISR image. Returns ------- exposure : `lsst.afw.image.Exposure` or `dict` Simulated ISR image data. Notes ----- This method currently constructs a "raw" data image by: * Generating a simulated sky with noise * Adding a single Gaussian "star" * Adding the fringe signal * Multiplying the frame by the simulated flat * Adding dark current (and noise) * Adding a bias offset (and noise) * Adding an overscan gradient parallel to the pixel y-axis * Simulating crosstalk by adding a scaled version of each amplifier to each other amplifier. The exposure with image data constructed this way is in one of three formats. * A single image, with overscan and prescan regions retained * A single image, with overscan and prescan regions trimmed * A `dict`, containing the amplifer data indexed by the amplifier name. The nonlinearity, CTE, and brighter fatter are currently not implemented. Note that this method generates an image in the reverse direction as the ISR processing, as the output image here has had a series of instrument effects added to an idealized exposure.
Reimplemented in lsst.ip.isr.isrMockLSST.IsrMockLSST.
Definition at line 381 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.makeTransmissionCurve | ( | self | ) |
Generate a simulated flat transmission curve. Returns ------- transmission : `lsst.afw.image.TransmissionCurve` Simulated transmission curve.
Definition at line 370 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.run | ( | self | ) |
Generate a mock ISR product, and return it. Returns ------- image : `lsst.afw.image.Exposure` Simulated ISR image with signals added. dataProduct : Simulated ISR data products. None : Returned if no valid configuration was found. Raises ------ RuntimeError Raised if both doGenerateImage and doGenerateData are specified.
Reimplemented in lsst.ip.isr.isrMockLSST.IsrMockLSST.
Definition at line 284 of file isrMock.py.
|
staticprotected |
Definition at line 264 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.bfKernel |
Definition at line 278 of file isrMock.py.
|
static |
Definition at line 263 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.crosstalkCoeffs |
Definition at line 269 of file isrMock.py.
lsst.ip.isr.isrMock.IsrMock.rng |
Definition at line 268 of file isrMock.py.