I need help utilizing platesolving to help with registration

I’ve read the documentation, but it still couldn’t quite figure out how to update my stacking script, which uses two pass registration, to take advantage of the new platesolving feature for distortion correction.

My existing script segment looks like this:

Pre-process Light Frames

calibrate light -bias=bias_stacked -flat=pp_flat_stacked -cfa -equalize_cfa -debayer

Align lights

First doing: register pp_light -2pass -nostarlist

register pp_light -2pass -nostarlist

Now doing: seqapplyreg pp_light -framing=max

seqapplyreg pp_light -framing=max

And I know the platesolve would be this, that I do before registration:

seqplatesolve pp_light

Do I have to then save a distortion file with -disto= then like this?

Hi Naz,

I can’t find any information on the SIRIL website that gives basic examples of how to utilize the new distortion correction provided by platesolving during registraton. FOr instance, if I have this basic two pass registration:

Pre-process Light Frames

calibrate light -bias=bias_stacked -flat=pp_flat_stacked -cfa -equalize_cfa -debayer

Align lights

First doing: register pp_light -2pass -nostarlist

register pp_light -2pass -nostarlist

Now doing: seqapplyreg pp_light -framing=max

seqapplyreg pp_light -framing=max

How would I modify this to add astrometray. Clearly I would need to add:

seqplatesolve pp_light

Do I need to write the distoraqtion file out with the -disto= command like this:

seqplatesolve pp_light -disto=distortionFile

and then utilize that during the registration? like this:

register pp_light -2pass -nostarlist -disto=distortionFile

Hint hint, I tried this but it doesn’t work, it returns this error:

16:24:07: Running command: register
16:24:07: Unknown distortion type distortionParameters, aborting.
16:24:07: Error in line 86 (‘register’): invalid arguments.
16:24:07: Exiting batch processing

So I’m unable to figure it out. Some help on exactly how I should change my original script would be appreciated, or a pointed to a working script.

Thanks!