shadowcamcal
Calibrates ShadowCam Images
shadowcamcal performs radiometric corrections to images acquired by the Camera aboard the Korea Pathfinder Lunar Orbiter spacecraft.
The ShadowCam detector has a total of 3144 pixels, divided amongst 6 channels, each containing 524 pixels.
The ShadowCam camera has the ability to acquire images of differing sizes in line. The starting hardware detector pixel for the acquired image is specified by the ISIS label keyword, SampleFirstPixel. The first pixel in this detector is indicated by a value of ??(0 for LROC).Bias Subtraction
Gain Correction/Normalization
Dark Subtraction
Flat Field
Flat Field
Radiance
IOF
Special Pixels
The calibration equation is: (update for SC)
reportedDN =
Where:
ObservedDN =
Categories
History
| Victor Silva | 2024-05-22 | Original version |
| Cordell Michaud | 2025-03-31 | Refactored for better testability, simplified code where possible, and improved readability. Changed INTRCPTCOEFF parameter to INTERCEPTCOEFF for clarity and consistency. |
Parameters
Files
| Type | cube |
|---|---|
| File Mode | input |
| Filter | *.cub |
| Type | cube |
|---|---|
| File Mode | output |
| Filter | *.cub |
| Type | boolean |
|---|---|
| Default | False |
| Type | boolean |
|---|---|
| Default | True |
Bias Average Subtraction
| Type | boolean |
|---|---|
| Default | True |
| Inclusions |
|
| Type | string | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Default | MEAN | |||||||||
| Option List: |
|
Gain Correction
| Type | boolean |
|---|---|
| Default | True |
| Inclusions |
|
| Type | filename |
|---|---|
| File Mode | input |
| Default Path | $kplo/calibration |
| Default | $kplo/calibration/gain_factors.csv |
| Filter | *.csv |
Dark Subtraction
| Type | boolean |
|---|---|
| Default | True |
| Inclusions |
|
| Type | filename |
|---|---|
| File Mode | input |
| Default Path | $kplo/calibration |
| Default | $kplo/calibration/dark_subtract_slope.csv |
| Filter | *.csv |
| Type | filename |
|---|---|
| File Mode | input |
| Default Path | $kplo/calibration |
| Default | $kplo/calibration/dark_subtract_intercept.csv |
| Filter | *.csv |
Flatfield Correction
| Type | boolean |
|---|---|
| Default | True |
| Inclusions |
|
| Type | filename |
|---|---|
| File Mode | input |
| Default Path | $kplo/calibration |
| Default | $kplo/calibration/flat_field.csv |
| Filter | *.csv |
Radiance Correction
| Type | boolean |
|---|---|
| Default | True |
| Inclusions |
|
| Type | filename |
|---|---|
| File Mode | input |
| Default Path | $kplo/calibration |
| Default | $kplo/calibration/radiance.csv |
| Filter | *.csv |

