New user here. Altered the OSC preprocessing script because I don;t use flats or darks. Ran the script on my FITS files and lights and darks went well. But then this. Any suggestions? Do I have to remove the “-flat” switch? Thanks for any assistance. 11:42:15: Setting CWD (Current Working Directory) to ‘D:\astro\IC_63\process\process’
11:42:15: # Calibrate Light Frames
11:42:15: Running command: calibrate
11:42:15: Checking sequences in the directory: D:\astro\IC_63\process\process.
11:42:15: Reading FITS: file dark_stacked, 1 layer(s), 6248x4176 pixels, 32 bits
11:42:15: …/masters/pp_flat_stacked.[any_allowed_extension] not found.
11:42:15: Error in line 41 (‘calibrate’): invalid arguments.
11:42:15: Exiting batch processing.
11:42:15: Setting CWD (Current Working Directory) to ‘D:\astro\IC_63\process’
11:42:15: Script execution failed.
you still have a reference to the master flat in the calibration command
Thanks - So would you know how to modify this line, which I believe is the outlier?
Calibrate Light Frames
calibrate light -dark=…/masters/dark_stacked=…/masters/pp_flat_stacked -cc=dark -cfa -equalize_cfa -debayer
This was the original:
Calibrate Light Frames
calibrate light -dark=…/masters/dark_stacked -flat=…/masters/pp_flat_stacked -cc=dark -cfa -equalize_cfa -debayer
you should look at the commands reference for calibrate at least, -dark= means you pass a master dark, remove that and the -cc=dark too for darks, -equalize_cfa is for flats, remove it too. You cannot remove some random parts and expect it to be working
Thanks again. I have looked (and looked and looked) at the docs, but without specific examples, I"m not clear how much of the text is the switch vs the switch and the associated parameter values for that option and/or the path. It would be a huge help (and time saving) if you could give me the exact syntax for the line below such that only the lights and darks were integrated. I assume that is the only issue for my setup.
Thanks much.
Calibrate Light Frames
calibrate light -dark=…/masters/dark_stacked=…/masters/pp_flat_stacked -cfa -debayer
your original description is unclear, do you have darks or not? do you have bias or not?
Sorry. I meant I do not use flats or bias frames. I do use darks and of course lights.
Thanks.
so it’s not the dark part that you need to remove…
calibrate light -dark=../masters/dark_stacked -cc=dark -cfa -debayer
(edited to remove the three dots)
Thanks again and sorry for the confusion.
I altered line 41 to
(# Calibrate Light Frames)
calibrate light -dark=…/masters/dark_stacked -cc=dark -cfa -debayer
and now when I run the script with that change I get…
14:20:41: # Calibrate Light Frames
14:20:41: Running command: calibrate
14:20:41: Checking sequences in the directory: D:\astro\IC_63\process\process.
14:20:42: …/masters/dark_stacked.[any_allowed_extension] not found.
14:20:42: Error in line 41 (‘calibrate’): invalid arguments.
14:20:42: Exiting batch processing.
14:20:42: Setting CWD (Current Working Directory) to ‘D:\astro\IC_63\process’
14:20:42: Script execution failed.
Any suggestions?
Thanks again,
Dennis
Looks like you are not in the right folder…
Thanks. I have folders for Lights, Darks, Biases and Flats in D:\astro\IC_63 so I changed my Home to D:\astro\IC_63
But I am still getting the error as follows:
15:19:46: # Calibrate Light Frames
15:19:46: Running command: calibrate
15:19:46: Checking sequences in the directory: D:\astro\IC_63\process.
15:20:58: …/masters/dark_stacked.[any_allowed_extension] not found.
15:20:58: Error in line 41 (‘calibrate’): invalid arguments.
15:20:58: Exiting batch processing.
15:20:58: Setting CWD (Current Working Directory) to ‘D:\astro\IC_63’
15:20:58: Script execution failed.
This is line 41:
(# Calibrate Light Frames)
calibrate light -dark=…/masters/dark_stacked -cc=dark -cfa -debayer
Can’t get this sorted…
Thanks for any help.
this is two dots. I don’t know why pixls shows three.
There are three dots in the line of text I got from VinVin above. Changing to two (as per Unix syntax). Looks like it’s running…
Thanks much
Yes, the forum is changing the two dots to three dots… strange.
@paperdigits : any idea?
Try formatting your text as code.
Not quite sure about that one… just modifying the existing script. But the error was the … instead of …
Thanks.
it’s just that I copied from your message that contained the 3 dots and I didn’t check, but if you put two dots it’s ok, I’ve edited my message
And in fact, I copied the line right from the CLI!??
Anyway, working now - a huge timesaver from my prior platform (Images Plus) and thanks again for your help.
Very much appreciated.
D.
and the forum changed it.
As @paperdigits said, you need to format your text as code to avoid such issues.

