Hi Wolfgang, you are right, probably if I state the final goal it's better.
Basically, I'd like to create a subfolder structure that allows me to match Flat and Light frames over different sessions. In order to easily feed them to WBPP in Pixinsight, following the instructions here:
I'm fairly certain this is a frequent issue that experts have already solved.
I would like a subdirectory of the type: "Target/Session_number/Type/Filter/Filename" in order to use Session_number as a keyword to match Flats and Light frames.
I reasoned that using the Date as the "Session_number" might work. However, as you properly pointed out, this would result in a mismatch for frames collected after midnight.
Is there a smarter way to get this using the scheduler?
I also use keywords in WBPP - I probably have watched the same videos you have from the looks of it! I don't use folders for each night/session but instead use a keyword in the file name. In the capture module, in the file settings area, you can add arbitrary text to the file name that EKOS saves. For example you can insert something like "Night_1" for the first night of imaging. The next night you shoot you'll need to increment the "1" to a "2" and so on. If you do this for both your lights and flats, they'll have the session name imbedded in the file. Your resulting directory structure will have, for example, all the red filter light images for all the nights in the light/red folder - no subfolders for each session. The same will be true for the other filters as well as the flat frames. When you first bring them into WBPP, they'll all be grouped together until you add the keyword you used to WBPP's Grouping Keywords. Then all the lights and flats for each night will be properly associated with each other.
It would be nice if there was an input in EKOS for session/night so you don't have to edit this custom text (which is easy to forget sometimes) but, unless you are running into a file name size limitation, I don't think having folders for each session is needed.
As you mentioned, the issue is remembering to change the keyword. Because I use the scheduler for automatic acquisition, the file setting of the employed sequence file must be adjusted each time. If the acquisition sequence is sophisticated, such as using many filters, this can be time-consuming and error-prone.
As you suggested, instead of splitting everything into directories, adding a keyword and "counter" to the file name for the session is sufficient. I was thinking of using subdirs to make picture inspections like blinking easier. But I recognize it's pointless.
What drives me insane is that I'm confident that the scheduler is already capable of doing so, or that an extremely simple script should be able to handle the situation...
Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.
Thanks a lot Wolfgang, even if that is not my definition of an "extremely simple script" I'll try to digest it and figure out how to incorporate it into my system.