Bug 424360 - Using Dark Frames in Guiding Module Repeats Dark Capture Process
Summary: Using Dark Frames in Guiding Module Repeats Dark Capture Process
Status: RESOLVED FIXED
Alias: None
Product: kstars
Classification: Applications
Component: general (other bugs)
Version First Reported In: 3.4.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Jasem Mutlaq
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-18 07:51 UTC by MountainAirCA
Modified: 2021-09-13 08:18 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In: 3.5.5
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MountainAirCA 2020-07-18 07:51:48 UTC
SUMMARY

The dark frame feature in the guiding module initially appears to work, but then after some minutes it will prompt me to capture another dark frame when one was just stored in the library.

STEPS TO REPRODUCE
1. In the Guiding Module, choose dark frame.
2. Capture a frame
3. Choose a star
4. Click Subframe
5. Click Guide

OBSERVED RESULT

Ekos will prompt me to add the lens cover to capture a dark frame, as expected with an empty dark library.  This dark frame is successfully stored in the library.  Then guiding begins.  After some minutes, Ekos will prompt for another dark frame.  If we don't notice, it will wait 60 seconds then take a dark frame even without the cover on; this results in an obliteration of signal that causes guiding to fail.

EXPECTED RESULT

In a single guiding session where exposures and other settings are not changing, the guiding module should not prompt for a dark frame when a matching dark frame is already in the library.


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Stellarmate 3.5.2
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 MountainAirCA 2020-07-20 04:03:56 UTC
KStars 3.4.3 experienced the same issue in the simulator -- but only one time.  I had started guiding after deleting all darks from the library, so KStars correctly prompted me to take a dark.  That worked fine, and guiding started.  A minute later I switched into the capture tab and KStars prompted me for another dark.  I had not tried to capture anything, nor did I change the exposure or gain settings in the Guiding tab or Indi control panel.  This did seem better than Friday night, when I was prompted about 7 or 8 times for new darks before I just turned the feature off.

I will try again when I can get a live scope set up outside, and will capture the guide log.
Comment 2 MountainAirCA 2020-07-21 06:00:57 UTC
I believe this may be operating as designed.  In the simulator tonight, I was able to reproduce the issue when I changed the temperature via INDI.  Over the course of the night, cooling ambient temperatures will cause the camera temp to drop, invalidating darks in the library.  Starting exposures can also cause the sensor temp to increase, having a similar effect in the other direction.

There's no getting around matching your dark and light temperatures, but this is a real inconvenience.  Over 20 minutes I had to put the cover on 7 or 8 times, and my temp threshold was set to 1°C.

I wonder if there could be two settings for the dark library: a tighter tolerance for the cooled main imaging cam (0.5C, for example) and a looser setting (3°C, for example) for the uncooled guide cam.  Would that wide range affect dark frame subtraction too much?

In addition to the above idea, I would recommend allowing users to disable the auto-close option in the guiding module's "Cover the telescope in order to take a dark exposure" dialog.  This way, the dark is not automatically taken when we're distracted in the field and do not put the telescope cover on.  Some kind of persistent audio alert would be great, too -- to call attention to the issue in case the user is sleeping, working on another scope, etc.

I think this can be closed unless you think the above ideas have merit.
Comment 3 Jasem Mutlaq 2021-09-13 08:18:25 UTC
With Dark Library, this no longer happens.