# Darks(FlatDarks) are not sorted to Filter anymore

**URL:** <https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252>\
**Category:** AutoIntegrate\
**Created:** [March 5, 2025, 8:43am UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252 "2025-03-05T08:43:02Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![RvB](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@RvB](https://forums.ruuth.xyz/u/RvB)\
**Post date:** [March 5, 2025, 8:43am UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/1 "2025-03-05T08:43:02Z")

</div>

Hi!  
Versions: Pixinsight 1.93  
Autointegrate 1.74.2

I´m not sure whats the Reason: Autointegrate is´nt sorting my Darks or Flatdarks anymore regarding the Filter they are exposed with. I´ve checked it with older and actual Files and compared also the Fitsheader. The Keywords Filter and Image-Type are set, f.e. Filter G and Flat or Dark. This looks normal.

If I load these FlatDarks as Flats or Image, they will be sorted correctly, but not in the FlatDark-Section.

Running the Script I can see at the Process-Console the Error-Message: Missing Meta-Data.

What can this be?  
CS  
Reiner

---

<div class="post-metadata">

**Author:** ![jarmor](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jarmor](https://forums.ruuth.xyz/u/jarmor)\
**Post date:** [March 6, 2025, 7:45pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/2 "2025-03-06T19:45:26Z")

</div>

Hi Reiner,

I have some trouble reproducing the problem. Would it be possible to get more information like autointegrate.log file, or console output if there is no autointegrate.log?

Regards,  
Jarmo

---

<div class="post-metadata">

**Author:** ![jarmor](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jarmor](https://forums.ruuth.xyz/u/jarmor)\
**Post date:** [March 7, 2025, 5:13pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/3 "2025-03-07T17:13:32Z")

</div>

I saw the console output in PixInsight forum that helped to reproduce the problem. I have pushed a new version v1.74.3 that fixes this problem.

Jarmo

---

<div class="post-metadata">

**Author:** ![RvB](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@RvB](https://forums.ruuth.xyz/u/RvB)\
**Post date:** [March 11, 2025, 5:59am UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/4 "2025-03-11T05:59:42Z")

</div>

![Screenshot 2025-03-10 151422](https://forums.ruuth.xyz/uploads/default/original/1X/2c899e52469d8dcb88e7a725a69ba03055eac54f.jpeg)  
As you see, there is only one flatdark integrated. But I loaded 5 (LRGBHa). And as I understand the following integration is using this one Flatdark for all Flats.  
Shouldn’t a separate integration be shown here for each Flatdark?  
 ![image](https://forums.ruuth.xyz/uploads/default/original/1X/715cb419f7e3077d105a55d6a073002afc75923b.png)  
As you can see, the flatdarks are not sorted by filter like the flats and lights are. So I assume that the script handles the flatdarks incorrectly

---

<div class="post-metadata">

**Author:** ![RvB](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@RvB](https://forums.ruuth.xyz/u/RvB)\
**Post date:** [March 11, 2025, 6:01am UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/5 "2025-03-11T06:01:30Z")

</div>

How can I share the Autosetup.json and the AutosaveSetup.json ?

---

<div class="post-metadata">

**Author:** ![jarmor](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jarmor](https://forums.ruuth.xyz/u/jarmor)\
**Post date:** [March 11, 2025, 7:54pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/6 "2025-03-11T19:54:43Z")

</div>

Hi,

I do not do much calibration myself, and I do not seem to have any test material for flat darks (or dark flats). I also remember it was pretty painful to try to understand what flat darks really are 🙂 So it is possible that they are not handled correctly. I need to get back to reading some info on those.

Any additional info you may have is of course very useful. For example those Json files, or autointegrate log files can be useful. If you are willing to share a subset of data for my test use, that would be great too. A very small subset like 1-3 files for each category (lights, flats, etc.) should be enough as I am testing only processing and not the final results.

Regards,  
Jarmo

---

<div class="post-metadata">

**Author:** ![jarmor](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jarmor](https://forums.ruuth.xyz/u/jarmor)\
**Post date:** [March 12, 2025, 9:08pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/7 "2025-03-12T21:08:31Z")

</div>

My understanding is that flat darks are dark frames used to calibrate flats. They are used in the same way as darks are used to calibrate lights. As with darks, they are not sorted by filter. Please feel free to correct if I have misunderstood this.

Jarmo

---

<div class="post-metadata">

**Author:** ![RvB](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@RvB](https://forums.ruuth.xyz/u/RvB)\
**Post date:** [March 16, 2025, 10:44am UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/8 "2025-03-16T10:44:51Z")

</div>

I answered to the Email I´ve got from the Forum. The Email came back today…

This I wrote:

You misunderstood that. CMOS cameras are different than CCD cameras. We need darks with exactly the same exposure time as the flats. This means that the flats and flat darks belong together, are a pair and should therefore be sorted in the same way as the flats and lights. Otherwise, the flats don’t really match the light images. The flat darks are treated like bias images. Therefore, the lights must also be calibrated with a bias, otherwise they will be overcorrected.

---

<div class="post-metadata">

**Author:** ![jarmor](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jarmor](https://forums.ruuth.xyz/u/jarmor)\
**Post date:** [March 16, 2025, 4:06pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/9 "2025-03-16T16:06:05Z")

</div>

Hi Rainer,

Thanks for clarifying this. I did check some YouTube channels but obviously misunderstood the vague terms they were using. As in many other cases, I did get the best answer using AI bot (and obviously from you).

I hope to get this corrected in a few days. It would be great if you could verify it using my debug repository before I put out the final version. I will post a note here when I think it is ready.

I am using just free tools for this forum and emails posted from the forum. So my setup is very simplistic one and and does not support email replies.

Regards,  
Jarmo

---

<div class="post-metadata">

**Author:** ![RvB](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@RvB](https://forums.ruuth.xyz/u/RvB)\
**Post date:** [March 16, 2025, 5:43pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/10 "2025-03-16T17:43:34Z")

</div>

-----I am using just free tools for this forum and emails posted from the forum. So my setup is very simplistic one and and does not support email replies. -----

Hi Jarmo, that wasn’t a criticism, but an explanation for why my reply was so late. I wasn’t paying attention again… 😉  
I’m very grateful for your work, and I’ve been wondering for a while why you’re making all this available for free. I’d be happy to make a donation.

Please tell me how I can help

Regards  
Reiner

---

<div class="post-metadata">

**Author:** ![jarmor](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jarmor](https://forums.ruuth.xyz/u/jarmor)\
**Post date:** [March 19, 2025, 8:59pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/11 "2025-03-19T20:59:50Z")

</div>

Hi Reiner,

I have pushed a test version to my debug repository at `https://ruuth.xyz/debug/autointegrate/`. It would be great if you can try it out and give feedback. I was unable to locate a real test case for flat darks so I just simulated it. So I have no idea if the image quality is good or if something goes wrong.

I have been doing this script (mostly) just for my own use and as a learning process. There’s no need to donate, but if you’d like to support my work, you can do so via the following link: [PayPal.Me](https://www.paypal.com/paypalme/jarmoruuth) 🙂

Regards,  
Jarmo

---

<div class="post-metadata">

**Author:** ![RvB](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@RvB](https://forums.ruuth.xyz/u/RvB)\
**Post date:** [March 19, 2025, 11:07pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/12 "2025-03-19T23:07:36Z")

</div>

Hi Jarmor,  
this looks really good. Need some more Time to investigate. I keep you informed  
CS  
Reiner

 ![image](https://forums.ruuth.xyz/uploads/default/original/1X/901aafb020cf7bf79cd2b07d813979c698d70ec5.jpeg)

 ![image](https://forums.ruuth.xyz/uploads/default/original/1X/cee858b0febfa7559df9162a4416738dc838be2c.png)

---

<div class="post-metadata">

**Author:** ![RvB](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@RvB](https://forums.ruuth.xyz/u/RvB)\
**Post date:** [April 17, 2025, 9:09am UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/13 "2025-04-17T09:09:06Z")

</div>

Hi Jamor,

I tested this Version and am very satisfied. Perhaps you include this in the next Version for testing “in the Field” to see what others say.

CS & Thanks  
Reiner

---

<div class="post-metadata">

**Author:** ![jarmor](https://forums.ruuth.xyz/letter_avatar_proxy/v4/letter/j/6f9a4e/32.png) [@jarmor](https://forums.ruuth.xyz/u/jarmor)\
**Post date:** [April 17, 2025, 7:40pm UTC](https://forums.ruuth.xyz/t/darks-flatdarks-are-not-sorted-to-filter-anymore/252/14 "2025-04-17T19:40:16Z")

</div>

Hi Reiner,

Thanks for the note. I have been planning to put out a new version but have been testing the DBE support. But I guess it it what it is and I’ll update it later if needed.

I have now put out a new version to my test repository at `(https://ruuth.xyz/test/autointegrate/)`. I hope to put out the generic version in a few days.

Regards  
Jarmo
