./
ramp_common_level.pro
This function matches the four sectors of each frame to a common level.
top source RAMP_COMMON_LEVEL
JWST Data Processing - NIRCam Cryo tests
RAMP_COMMON_LEVEL, data0
Matches the four sectors of the detector to a common level.
This routine uses the average of the top and bottom reference pixels to establish the global supermean level of the ramp.
Then the reference pixels (top&bottom) of each sector&frame are tuned to match the global supermean.
This routine performs an operation similar to the zero (first) read subtraction, with some advantage a) it preserves the DC level of each frame, useful for linearity and saturation check. b) facilitates the noise analysis b) since images are not differential, the anomalies (e.g. cosmic rays) of the first frame do not disappear but propagate through the ramp. There is also a disadvantage for quick look, as the images maintain the fixed (bias) pattern that gets removed by the zero image difference. The bias pattern, on the other hand, will be more correctly derived by the line fitting procedure.
Parameters
- data0 in out required type=fltarr(2048,2048,Ngroups)
ramp datacube before and after correction: it gets overwritten!
Examples
IDL> ramp_common_level, data0
Author information
- Author:
M. Robberto, created 25 Apr. 201
Statistics
Lines: | 45 lines |
McCabe complexity: | 3 |
File attributes
Modification date: | Wed Jun 19 15:09:27 2013 |
Lines: | 81 |