Auto N Point Alignment

Downloads, tips, tricks and information how to get more from APT, equipment or processing
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Introduction

Please note:

The post was updated on the 1st Nov 2021.

Through use and a clearer understanding of the issues I have made four significant changes:
  1. A note has been added to the "4 Alignment Point Model" section about an issue that can arise when it is used.
  2. The placings of the recommended alignment points of the "6 Alignment Points model" have been improved.
  3. A recommendation for the setting of "EQMOD/EQASCOM > Alignment / Sync section > Point Filter" has been added.
  4. An example "CCD - Auto 6 Point Alignment" light plan has been added

The Problem

The software that controls your mount (whether it is in a handset or your PC) has an "ideal" model of the sky. This model is used to calculate the GoTo command require to slew to a given location. The accuracy of this model, its relationship with the "real" sky and therefore any GoTo command, is affected by the accuracy of the setup of the mount, e.g. whether
  • it is perfectly level,
  • it is perfectly Polar Aligned
  • there is no Cone Error
  • there is no flexure errors
  • the mount's stepper motors and gears are all perfectly manufactured, with no backlash
  • etc.
The result of any inaccuracies is that when a GoTo is executed the requested location will not be centred exactly in the centre of the scope's field of view.

The Solution

The solution is for the software to also contain a Transformation Model. The Transformation Model is then used to do a coordinate transformation between the known coordinate of an Alignment Point and the actual location of that point. Traditionally the Alignment Points, required to create the Transformation Model, are created by requesting the mount to slew to a selected star, using the mounts controls to slew it until the star is in the dead centre of the scope's field of view and then selecting Sync.

With APT's Point Craft functionality the creation of the Transformation Model is simplified somewhat. The mount can be slewed to any location in the sky, an image taken, Solved and then a Sync issued.

Types of Transformation Models

There are various levels of complexity that the Transformation Model can take. At it's simplest it can be a single point and, in EQMOD's implementation at least, a "Nearest Point Transformation" is used. If you have three or more points then the model uses an "N Point Transformation", which triangulates the desired coordinates from within the triangle created by the closest Alignment Points. If the coordinate is outside of any available triangle of Alignment Points then a "Nearest Point Transformation" will be used.

Which Transformation Model to use?

There seem to be two schools of thought, within Astrophotography circles, as to whether to use a single Alignment Point close to the imaging target or whether to create multiple Alignment Points, ideally that encompasses it.

The advantage of the single Alignment Point is that it means you can start imaging sooner; time is saved slewing, imaging and solving multiple points in the sky. The advantage of multiple Alignment Points, spaced around the sky, is that if you are imaging multiple targets then the GoTo's to those targets are likely to be more accurate first time. APT's Auto Meridian Flip would benefit from this approach.

Notes

What is important to note is that the Transformation Model, created by the Alignment Points, is ONLY used when a GoTo is executed. It is NOT used whilst an object is being tracked.

Chris Shillito (EQMOD Developer) has written an excellent document on the way Transformation Models are used within the EQMOD/EQASCOM software: http://eq-mod.sourceforge.net/docs/eqmo ... models.pdf. Another document is here: http://eq-mod.sourceforge.net/tutindex.html and look for "Developer > 3-Star Alignment" link. Both well worth a read.

How do I do an Auto N Point Alignment?

A particular type of Light Plan

If you decide that using an "N Point Alignment Transformation Model" is appropriate for your requirements, then APT has a way to automatically create the Alignment Points. It is done by creating a Light Plan in a particular way.

To automatically and consistently create Alignment Points you need to be able to go to an ALT AZ coordinate, rather than an RA DEC one. Using APT's #GoToAltAz command enables this. It allows you to slew to a consistent sky location, take an exposure, do a #SolveSync, then repeat.

This process allows you to pick sky locations that are visible at your site and, of course, it isn't affected by time.

If you are unsure about your mount's 1st GoTo accuracy, then just do a #SolveSync Blind for the 1st and perhaps 2nd Alignment Points. You can, of course, change the exposure time and Altitude and Azimuth values to suite your requirements. You could also end with a #Park command.

If you have read Chris Shillinto's document (mentioned above) then you will know that the simplest Transformation Model to cover the whole sky is a Transformation Model with four Alignment Points (Sync points) equally spread around the sky.

Creating a simple "whole sky " 4 Alignment Point Model

Here is an example Light Plan that creates a 4 Alignment Point Model.

But please note:

One of the problems of a 4 Alignment Point Model is that it requires the triangles that form the Transformation Model to cross the Meridian. This can cause problems when the a transformed point is being calculate from a triangle that is predominately in the opposite hemisphere.

Therefore, it is strongly recommended that you use a minimum of a 6 Alignment Point Model (see the "6 Alignment Point Model" section below).

Code: Select all

Don't dither this plan > checked
Exp	Cnt	Command
0	1	#Unpark
0	1	#GotoAltAz 45 45
15	1	#SolveSync Near
0	1	#GotoAltAz 45 135
15	1	#SolveSync Near
0	1	#GotoAltAz 45 315
15	1	#SolveSync Near
0	1	#GotoAltAz 45 225
15	1	#SolveSync Near
From APT V3.65 onwards, you can use the Plan Editor to import this file as an example:
  • for a DSLR camera:
    DSLR - Auto 4 Point Alignment Plan.xml
  • for a CCD camera:
    CCD - Auto 4 Point Alignment Plan.xml

Creating a more accurate "whole sky" 6 Alignment Point Model

Of course, you can use as many points as you wish. However an excellent compromise is to create a 6 Alignment Point Model, i.e. three points in each East/West hemisphere. To cover the whole sky the following LightPlan places the points to do just that.

When using a 6 Alignment Point Model, by default, there will be some triangles that form the Transformation Model that cross the meridian. This can cause problems when the a transformed point is being calculate from a triangle that is predominately in the opposite hemisphere.

To avoid this the transformation model should be set such that triangles are only used that lie within the same hemisphere as the point being transformed, if your mount driver supports this.

In EQMOD/EQASCOM, this is done by setting "EQMOD/EQASCOM > Alignment / Sync section > Point Filter" = "PierSide Only"

Code: Select all

Don't dither this plan > checked
Exp	Cnt	Command
0	1	#Unpark
0	1	#GotoAltAz 45 170
15	1	#SolveSync Near
0	1	#GotoAltAz 45 90
15	1	#SolveSync Near
0	1	#GotoAltAz 45 10
15	1	#SolveSync Near
0	1	#GotoAltAz 45 190
15	1	#SolveSync Near
0	1	#GotoAltAz 45 270
15	1	#SolveSync Near
0	1	#GotoAltAz 45 350
15	1	#SolveSync Near
From APT V3.65 onwards, you can use the Plan Editor to import this file as an example:
  • for a CCD camera:
    CCD - Auto 6 Alignment Point.xml
Cheers, Jim
You do not have the required permissions to view the files attached to this post.
User avatar
Yoddha
Site Admin
Posts: 16296
Joined: Thu Apr 17, 2014 3:48 pm
Reputation: 842
Location: Bulgaria
Contact:

^:)^ ^:)^ ^:)^ :-BD \M/
Clear skies,
Ivo

May the weather be with you!

Astro Photography Tool (APT v4.80) - The Imaging Catalyst
My images (6 AAPODs, 1 Published)
Gaert
Posts: 23
Joined: Sun Sep 09, 2018 12:03 pm
Reputation: 0
Location: Germany

Hi Jim,

Thanks for the example - will try it soon.

But why do I need to set "Don't dither this plan" to UNchecked?
Dithering in that plan does not make sense to me - especially as there should be no active guiding, or am I wrong?

Best Regards,

Nico
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Hi Nico,

My mistake. :oops: Correction made. :-BD
Thanks for pointing it out. :-)

Cheers, Jim
User avatar
vichman
Posts: 315
Joined: Sat Jun 24, 2017 3:06 pm
Reputation: 0

Hi Jim,

great work, thank you for summarizing this.

Ivo, is there a way to execute such an N point alignment plan as an external script?
I know that APT can trigger the execution of scripts that are stored on the hard drive in files, but I do not know how to do this with a light plan as such an external script.

I would like to write code similar to Jim's in a text file and have it executed from APT.

My intention is to use about 50 or so alignment points (for a 10micron mount), and editing several parameters concurrently (like exposure time) is much easier in a text file than in the plan editor in APT (i.e. search and replace etc.).

Thanks
Stefan
Happy to be able to use equipment from here: www.sternwarte.de
LZOS TMB 105/650 & Starfire 178/1760 scopes
10micron GM3000 HPS mount
QHY268C, QHY174M-GPS & QHY5-III-462C as well as ZWO ASI071MC Pro & ZWO ASI224MC cameras
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Hi Stefan,

My pleasure. :smile:

As of the latest beta version (3.65) you can import and export plans. So perhaps exporting a plan, editing it, then importing it would help :?:

I'm not sure if you meant this, but as the files are exported/imported as .xml files, you could write some code to create what you want (as I'm sure you know most programming languages have libraries to help format xml).

Talking of "Coding"... it occurred to me that perhaps Cedric could be persuaded to change his Plan Generator (viewtopic.php?f=19&t=1819) to work with these new features (i.e. create individual plans rather than editing the core xml file and creating Auto N Point Light plans)? :-?

Going back to the original requirement... creating 50 alignment points seems an awful lot. Why do you think so many points will help make the GoTo's much more accurate? Have you read Chris Shillito's document on the subject (http://eq-mod.sourceforge.net/docs/eqm ... models.pdf)? Did it make you think it would help? :geek:

Cheers, Jim
User avatar
Yoddha
Site Admin
Posts: 16296
Joined: Thu Apr 17, 2014 3:48 pm
Reputation: 842
Location: Bulgaria
Contact:

Hi Stefan,

At this stage APT can execute plans only internally, there is no way to trigger one via external scripts...
Clear skies,
Ivo

May the weather be with you!

Astro Photography Tool (APT v4.80) - The Imaging Catalyst
My images (6 AAPODs, 1 Published)
User avatar
vichman
Posts: 315
Joined: Sat Jun 24, 2017 3:06 pm
Reputation: 0

Hi Jim, Ivo,

exporting plans as XML, editing them manually, and re-importing them into APT afterwards was exactly what I was looking for!
I totally overlooked that this was implemented in V3.65. Thanks for pointing that out!

Using 50 or so alignment points might sound strange, I admit that.
But I am lucky that I have access to a high accuracy 10micron mount. If aligned properly this mount can have a goto pointing error of less than 10 arcseconds on average, anywhere in the sky.
For this the manufacturer demands something like min. 15 alignment points, the more the better. :-)
Don't ask me why, I haven't dug deep into this topic yet.

So far I did this manually by slewing to stars, it would be great if I could automate that.

So, thanks for your help.
Stefan
Happy to be able to use equipment from here: www.sternwarte.de
LZOS TMB 105/650 & Starfire 178/1760 scopes
10micron GM3000 HPS mount
QHY268C, QHY174M-GPS & QHY5-III-462C as well as ZWO ASI071MC Pro & ZWO ASI224MC cameras
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Hi Stefan,

Thanks for the explanation. I wonder if the manufacturer's requirement is so that any small visual alignment errors are smoothed out. Perhaps with the inherit accuracy of platesolving the need for so many will lessen.

Anyway, last time out I tried an Auto 4 Point Alignment, covering the whole sky. It only took a couple of minutes. I then tried an Auto Meridian Flip. After the 1st move of the GoTo++ the mount was only 100 pixels out. One more pass and it was only 8 (my tolerance is set to 10). My mount is an EQ5 Pro with Rowan Belt mod.

So the two processes seem to be an excellent combination.

Cheers, Jim
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Hi Brian,

Are you using a DSLR or a CCD camera?

I hadn't realised there is a difference in the way the Plans are structured, which means they aren't interchangeable. Ivo is updating APT to make this clearer I think.

Anyway, thanks for reminding me, I'll update my post to make it clearer its a DSLR plan.

Cheets, Jim
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Hi Brian,

I don't generally use a ccd for my main imaging, but I do have one for guiding, so I'll give it a go sometime tomorrow. I need to play with my ccd in APT anyway, to get to know how ccd's work under it, so it's worth doing.

Cheers, Jim
User avatar
Yoddha
Site Admin
Posts: 16296
Joined: Thu Apr 17, 2014 3:48 pm
Reputation: 842
Location: Bulgaria
Contact:

Hi Jim,

There is no need to connect real CCD, just use Shift+Click, select ASCOM or other type CCD, click on OK and then cancel the next step.

Sorry for the inconvenience, but can't think up a logical way to convert the DSLR to CCD plan and backwards. One has ISO other Binning...
Clear skies,
Ivo

May the weather be with you!

Astro Photography Tool (APT v4.80) - The Imaging Catalyst
My images (6 AAPODs, 1 Published)
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Hi Ivo,

Thanks for reminding me :-) you stopped me getting sidetracked ;)

I have updated my post to include a DSLR and a CCD example light plan.

I haven't checked the CCD plan, so if someone could please let me know if it works and if not why not! I would guess CCD users will want to at least change the exposure settings. :-?

Cheers, Jim
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Hi Brian,

My pleasure. :-)

I'm hoping for clear skies tonight too! (*)

To remove some of the mystery, just think of EQMOD/EQASCOM as a hand-controller - as that is all it is designed to replace. A very functional hand-controller for sure, but also easier to use in my opinion. :-BD

Any "hand-controller", whether a dedicated device or on a PC (ala EQASCOM), benefits from the creation of an alignment model. This is because, with the best will in the world, there will be slight inaccuracies in any mount/telescope setup. Polar Alignment errors, cone errors (where the scope is misaligned with the mount), inaccuracies in the gears, backlash, etc., etc., are all adjusted for by the alignment model. However, the model only helps with the accuracy of the GoTo. It has no impact whatsoever on the tracking of an object.

If you have a fixed mount, then the the alignment model should be good for quite a time. At least, that is, until you change the setup in some way. However, the recommendation is that you renew it at least every couple of months, as slight variations can creep in over time, e.g. flexing of the mount, etc., and even the position of the stars (earth rotation induced changes rather than the stars themselves :!: ).

So, how do you keep your alignment points (with EQMOD/EQASCOM) from one session to the next :?:

The answer is you use it's "Load/Save Alignment Preset" feature. On the EQMOD panel click on the "Spanner>>>" button. Then in the the "Alignment/Sync " box click on the "Notepad" icon , which will bring up a new window called the "Alignment Point List Editor".

Capture.JPG

This is a useful window to know because on the left it shows you, in real time, any alignment points added and on the right the position in the sky of those list points. As your scope moves around the sky it will show you which point or triangle of points are being used to align the scopes position. Mine aren't showing on the right, because the mount is not actually connected at the moment.

At the bottom is a box called "Load/Save Alignment Preset". Here you can elect to create alignment point presets (0 - 9). So what I do is:
  • rename "Preset 0" to "Last Alignment"
  • select "Save Alignment Points to Preset on Park"
  • select "Save Alignment Points to Preset on Append"
It's probably worth you also selecting "Load Alignments Points from Preset on Unpark". However, if you don't you can always load it manually: select the appropriate Preset from the drop-down list and click the "Open Folder" button.

There's no point on me selecting "Load Alignments Points from Preset on Unpark", because I don't have a fixed mount. I use the other two because I think that if the mount or EQMOD/EQASCOM gets turned off during a session, providing I can get things back to where they started accurately enough, I can use the same alignment points. I've never tested this theory, and it may actually be easier and more reliable to recreate them. But it doesn't hurt to have it available as a standby.

Hope that helps you to get one step further up the near vertical learning slope! \M/

Cheers, Jim
You do not have the required permissions to view the files attached to this post.
User avatar
vichman
Posts: 315
Joined: Sat Jun 24, 2017 3:06 pm
Reputation: 0

Brian,

the acceptable Goto++ error used by the algorithm is defined in your settings (Nr. 6 here https://ideiki.com/astro/usersguide/set ... 3D&mw=MjQw). What is your setting?

It might be that you expect too much from your equipment though. The pointing accuracy that you can get with your equipment is dependent on many parameters: First of all your mount's pointing accuracy (with the highly sophisticated 10micron mount that I use I reach about 10 arcseconds), then of course the focal length of your scope, your camera's chip size and pixel size, of course the atmospheric conditions, esp. seeing, and last not least whether you hit the focus point nicely... :-?

If you have 6 to 9 pixels "error" reported, that is already excellent! Why do you want more?
Your camera usually has a size of several thousand pixels by several thousand pixels, so I would consider anything below 20 pixels or so "dead center"... :YMHUG:

Clear skies
Stefan

EDIT: I just realized that Jim's post and mine overlapped by a few minutes. But basically we wrote the same things... :-BD
So, I leave you in Jim's great caring hands... ^:)^
Happy to be able to use equipment from here: www.sternwarte.de
LZOS TMB 105/650 & Starfire 178/1760 scopes
10micron GM3000 HPS mount
QHY268C, QHY174M-GPS & QHY5-III-462C as well as ZWO ASI071MC Pro & ZWO ASI224MC cameras
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Hi Brian,

The first thing I would say is that 6 to 9 pixels is pretty good! I've just checked my last night's images and my dithering moves up to as much 20 pixels! Though generally it's around 1 to 8 pixels. :-BD

However, there are some things I can think of: :-?

What do you have "APT > Point Craft > Settings > Acceptable GoTo++ Error (pixels)" set to. I started off with it about 30 for my EQ3/2 mount. With my EQ5 Pro I have it set to 10, i.e. about the same as my average dithering (pure chance, I hadn't given it a thought!), which it usually achieves with two rounds of GoTo++.

The 4 point alignment model for the whole sky is pretty coarse. So you could introduce more points (e.g. the example 6 point alignment model above).

Did you happen to check the "Alignment Point List Editor" to see whether your targets were within any of the triangles formed by the 4 alignment points? If they weren't then the system reverts to using a "Nearest Point" algorithm, which isn't as accurate. For example, my example 4 point plan uses an elevation of 45deg. Last night I was imaging the Rosette and Horsehead Nebula's both of which where outside a triangle. I would suggest is setting these as low down you can observe to get better coverage.

Looking forward to see your night's efforts! :-)

Cheers, Jim
Gaert
Posts: 23
Joined: Sun Sep 09, 2018 12:03 pm
Reputation: 0
Location: Germany

Hi All,

I used the 6 point align a couple of times, and in 3 out of 4 cases it worked very good.
Sometimes the platesolving does not work and an alignment point gets missed - I have no idea why this is, but it is not reproducable.

One thing that I would really wish for is to integrate a guiding calibration using PHD2 into the alignment plan.

So after the last alignment point the scope does not park, but instead should slew to a point near DEC=0 coming from north (to clear the backlash) and then clear the PHD2 guiding, automatic select a guidestar and start calibration / guiding.

Any idea how to achieve this?

Best Regards,

Nico
Gaert
Posts: 23
Joined: Sun Sep 09, 2018 12:03 pm
Reputation: 0
Location: Germany

Hmm... all methods that are necessary are already offered by the PHD2 server - I just need to write a small program / script to execute necessary commands via JSON RPC:
- clear_calibration
- find_star
- guide
- wait until get_calibrated is true
- stop_capture

https://github.com/OpenPHDGuiding/phd2/ ... Monitoring

Looks like a fun project for a cloudy sunday evening.
JST200
Posts: 2993
Joined: Fri Apr 29, 2016 11:43 am
Reputation: 499
Location: UK

Thanks, Brian, I'm just entering your postcode into my satnav :))

At the end of the day it's Ivo and Maria who really deserve the pints. There the ones who do the real work. ^:)^

Actually, that's interesting to know. Thanks. Did you change the positioning of the triangles or did you just set up a triangle in each hemisphere as per my example :?:

Cheers, Jim
Manitu
Posts: 97
Joined: Thu Apr 23, 2020 12:14 pm
Reputation: 20
Location: Germany

Hi All

I really appreciate this thread and all the knowledge, advices and effort being provided.

I just started with astronomy and astrophotography as an hobby and that is why I have one (may be simple) question:

Are there any specific settings in the EQMOD/EQASCOM which I need to pay attention to get the multiple star alignment working? So it will add all the alignment points into a model?
I am using an HEQ5 Pro with Rowan belt mod and the EQMOD with direct connection from Laptop to the mount.

Cheers Tom
Cheers and CS
Tom
Post Reply