I’ve been trying to write my own Siril script which will take my lights and eventually dump the final calibrated lights in a separate directory, but I’ve been struggling to do this without also copying some intermediate file that is not the calibrated light. It seems to me that the key issue is that I can’t run the preprocess command with an -out=directory option, but maybe there’s some way for me to achieve what I want that is not obvious to me?
It’s really convenient for me to have a totally separate output directory containing only the calibrated lights so I can easily merge multiple nights of lights to stack. Having other files that are not the calibrated lights requires me to manually go into directories and move the calibrated lights.
Here is a typical directory tree I have from NINA that I use:
DATE / TARGET / FILTER / IMAGETYPE / imageXYZ.fit
Examples:
2022-12-18/Horsehead Nebula/L/DARKFLAT/darkflat000.fit
2022-12-18/Horsehead Nebula/L/FLAT/flat000.fit
2022-12-18/Horsehead Nebula/L/DARK/master-dark.fit
2022-12-18/Horsehead Nebula/L/LIGHT/light000.fit
2022-12-18/Horsehead Nebula/B/DARKFLAT/darkflat000.fit
2022-12-18/Horsehead Nebula/B/FLAT/flat000.fit
2022-12-18/Horsehead Nebula/B/DARK/master-dark.fit
2022-12-18/Horsehead Nebula/B/LIGHT/light000.fit
2022-12-20/Horsehead Nebula/L/DARKFLAT/darkflat000.fit
2022-12-20/Horsehead Nebula/L/FLAT/flat000.fit
2022-12-20/Horsehead Nebula/L/DARK/master-dark.fit
2022-12-20/Horsehead Nebula/L/LIGHT/light000.fit
2022-12-20/Horsehead Nebula/B/DARKFLAT/darkflat000.fit
2022-12-20/Horsehead Nebula/B/FLAT/flat000.fit
2022-12-20/Horsehead Nebula/B/DARK/master-dark.fit
2022-12-20/Horsehead Nebula/B/LIGHT/light000.fit
What I want in the end is something like this:
2022-12-18/Horsehead Nebula/L-CALIBRATED/pp_light000.fit
2022-12-18/Horsehead Nebula/B-CALIBRATED/pp_light000.fit
2022-12-20/Horsehead Nebula/L-CALIBRATED/pp_light000.fit
2022-12-20/Horsehead Nebula/B-CALIBRATED/pp_light000.fit