Update lronaccal to use time dependent dark files and specific dark files for exp0 #4516
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update to lronaccal to use time-dependent dark files for dark correction and use of specific dark files for images with exp code of zero.
Description
The dark average produced is dependant on which options are selected.
If the custom dark file option is selected, the provided dark file will be used.
If the image has an exposure code of zero, the nearest (time) dark files with exposure code of zero will be used.
If UseNearestTimeDarkFile option is selected, the dark file with the nearest time to the image will be used for dark correction.
If UseNearestTimeDarkFilePair option is selected, the pair of dark files that the image time lies between will be used, as long as the difference between dark files doesn't exceed 45 days. If a suitable pair is not found, the latest dark file taken before the image will be used.
The equation used:
Related Issue
#4514
Motivation and Context
LROC images need dark correction that is time-dependent. Dark Files for this correction will be created regularly and placed in the data/mission/calibration/nac_darks/ directory for this purpose.
How Has This Been Tested?
The LROC science team has tested using these dark files for dark correction and has been using this time-intensive manual process for two years. This PR is an effort to incorporate into lronaccal.
Types of changes
Checklist:
Licensing
This project is mostly composed of free and unencumbered software released into the public domain, and we are unlikely to accept contributions that are not also released into the public domain. Somewhere near the top of each file should have these words: