1<sect2 id="ekos-align">
2    <title>Align</title>
3    <indexterm>
4        <primary>Tools</primary>
5        <secondary>Ekos</secondary>
6        <tertiary>Align</tertiary>
7    </indexterm>
8    <sect3 id="ekos-align-introduction">
9        <title>Introduction</title>
10        <screenshot>
11            <screeninfo>
12                Ekos Align Module
13            </screeninfo>
14            <mediaobject>
15                <imageobject>
16                    <imagedata fileref="ekos_astrometry.png" format="PNG"/>
17                </imageobject>
18                <textobject>
19                    <phrase>Ekos Align Module</phrase>
20                </textobject>
21            </mediaobject>
22        </screenshot>
23        <para>
24            Ekos Alignment Module enables highly accurate GOTOs to within sub-arcseconds accuracy and can measure and correct polar alignment errors. This is possible thanks to the astrometry.net solver. Ekos begins by capturing an image of a star field, feeding that image to <ulink url="https://astrometry.net">astrometry.net</ulink> solver, and getting the central coordinates (RA, DEC) of the image. The solver essentially performs a pattern recognition against a catalog of millions of stars. Once the coordinates are determined, the true pointing of the telescope is known.
25        </para>
26        <para>
27            Often, there is a discrepancy between where the telescope thinks it is looking at and where it is truly pointing. The magnitude of this discrepancy can range from a few arcminutes to a couple of degrees. Ekos can then correct the discrepancy by either syncing to the new coordinates, or by slewing the mount to the desired target originally requested.
28        </para>
29        <para>
30            Furthermore, Ekos provides two tools to measure and correct polar alignment errors:
31        </para>
32        <itemizedlist>
33            <listitem>
34                <para>
35                    <guilabel>Polar Alignment Assistant Tool</guilabel>: A very easy tool to measure and correct polar errors. It takes three images near the celestial pole (Close to Polaris for Northern Hemisphere) and then calculates the offset between the mount axis and polar axis.
36                </para>
37            </listitem>
38            <listitem>
39                <para>
40                    <guilabel>Legacy Polar Alignment Tool</guilabel>: If Polaris is not visible, this tool can be used to measure and correct polar alignment errors. It captures a couple of images near the meridian and east/west of the meridian. This will enable the user to adjust the mount until the misalignment is minimized.
41                </para>
42            </listitem>
43        </itemizedlist>
44        <para>
45            At a minimum, you need a CCD/Webcam and a telescope that supports Slew &amp; Sync commands. Most popular commercial telescope nowadays support such commands.
46        </para>
47        <para>
48            For the Ekos Alignment Module to work, you have an option of either utilizing the <emphasis>online</emphasis> astrometry.net solver, <emphasis>offline</emphasis>, or <emphasis>remote</emphasis> solver:
49        </para>
50        <itemizedlist>
51            <listitem>
52                <para>
53                    <guilabel>Online Solver</guilabel>: The online solver requires no configuration, and depending on your Internet bandwidth, it might take a while to upload and solve the image.
54                </para>
55            </listitem>
56            <listitem>
57                <para>
58                    <guilabel>Offline Solver</guilabel>: The offline solver can be faster and requires no Internet connection. In order to use the offline solver, you must install astrometry.net in addition to the necessary index files.
59                </para>
60            </listitem>
61            <listitem>
62                <para>
63                    <guilabel>Remote Solver</guilabel>: The remote solver is an offline solver the resides on a different machine (for example, you can use Astrometry solver on StellarMate). Captured images are solved on the remote machine.
64                </para>
65            </listitem>
66        </itemizedlist>
67    </sect3>
68
69    <sect3 id="ekos-align-get-astrometry">
70        <title>Get astrometry.net</title>
71
72        <para>
73            If you are planning to use <emphasis>Offline</emphasis> astrometry then you need to download astrometry.net application.
74        </para>
75        <note>
76            <para>
77                Astrometry.net is already shipped with StellarMate so there is no need to install it. Index files from 16 arcminutes and above (4206 to 4019) are included with StellarMate. For any additional index files, you need to install them as necessary. To use Astrometry in StellarMate from a remote Ekos on &Linux;/&Windows;/&MacOS;, make sure to select <guimenuitem>Remote</guimenuitem> option in Ekos Alignment Module. Furthermore, make sure that the <guimenuitem>Astrometry</guimenuitem> driver is selected in your equipment profile.
78            </para>
79        </note>
80        <screenshot>
81            <screeninfo>
82                Ekos Remote Astrometry
83            </screeninfo>
84            <mediaobject>
85                <imageobject>
86                    <imagedata fileref="ekos_remote_astrometry.png" format="PNG"/>
87                </imageobject>
88                <textobject>
89                    <phrase>Ekos Remote Astrometry</phrase>
90                </textobject>
91            </mediaobject>
92        </screenshot>
93        <variablelist>
94            <varlistentry>
95                <term>&Windows;</term>
96                <listitem>
97                    <para>
98                        To use astrometry.net under &Windows;, you need to download and install the <ulink url="https://adgsoftware.com/ansvr/">ANSVR Local Astrometry.net solver</ulink>. The ANSVR mimics the astrometry.net online server on your local computer; thus the internet not required for any astrometry queries.
99                    </para>
100                    <para>
101                        After installing the ANSVR server and downloading the appropriate index files for your setup, make sure ANSVR server is up and running and then go to Ekos Alignment options where you can simply change the <guilabel>API URL</guilabel> to use the ANSVR server as illustrated below:
102                    </para>
103                    <screenshot>
104                        <screeninfo>
105                            ANSVR Parameters
106                        </screeninfo>
107                        <mediaobject>
108                            <imageobject>
109                                <imagedata fileref="astrometry_windows_ansvr.png" format="PNG"/>
110                            </imageobject>
111                            <textobject>
112                                <phrase>ANSVR Parameters</phrase>
113                            </textobject>
114                        </mediaobject>
115                    </screenshot>
116                    <para>
117                        In Ekos Align module, you must set the solver type to <guimenuitem>Online</guimenuitem> so that it uses the local ANSVR server for all astrometry queries. Then you can use the align module as you would normally do.
118                    </para>
119                    <para>
120                        Remember as indicated above that StellarMate <emphasis>already</emphasis> includes astrometry.net. Therefore, if you would like to use StellarMate remotely to solve your images, simply change solver type to <guimenuitem>Remote</guimenuitem> and ensure that your equipment profile includes <emphasis role="bold">Astrometry</emphasis> driver which can be selected under the <guilabel>Auxiliary</guilabel> dropdown. This is applicable to all operating systems and not just &Windows;.
121                    </para>
122                </listitem>
123            </varlistentry>
124            <varlistentry>
125                <term>&MacOS;</term>
126                <listitem>
127                    <para>
128                        Astrometry.net is already included with &kstars; for &MacOS;, so no need to install it.
129                    </para>
130                </listitem>
131            </varlistentry>
132            <varlistentry>
133                <term>&Linux;</term>
134                <listitem>
135                    <para>
136                        Astrometry.net is already included with &kstars; bleeding version. But if astrometry is not installed, then you can install it by running the following command under &ubuntu;:
137                    </para>
138                    <para>
139                        <command>sudo apt-get install astrometry.net</command>
140                    </para>
141                </listitem>
142            </varlistentry>
143        </variablelist>
144    </sect3>
145
146    <sect3 id="ekos-align-download-index-files">
147        <title>Download Index Files</title>
148        <para>
149            For offline (and remote) solvers, index files are necessary for the solver to work. The complete collection of index files is huge (over 30 GB), but you only need to download what is necessary for your equipment setup. Index files are sorted by the Field-Of-View (FOV) range they cover. There are two methods to fetch the necessary index files: The new download support in Align module, and the old manual way.
150        </para>
151        <sect4 id="ekos-align-automatic-download">
152            <title>Automatic Download</title>
153            <screenshot>
154                <screeninfo>
155                    Astrometry.net Indexes Download
156                </screeninfo>
157                <mediaobject>
158                    <imageobject>
159                        <imagedata fileref="astrometry_indexes_settings.png" format="PNG"/>
160                    </imageobject>
161                    <textobject>
162                        <phrase>Astrometry.net Indexes Download</phrase>
163                    </textobject>
164                </mediaobject>
165            </screenshot>
166            <para>
167                Automatic download is only available for Ekos users on &Linux; &amp; &MacOS;. For &Windows; users, please download ANSVR solver.
168            </para>
169            <para>
170                To access the download page, click the <guibutton>Options</guibutton> button in the <link linkend="ekos-align">Align module</link> and then select <guilabel>Astrometry Index Files</guilabel> tab. The page displays the current FOV of your current setup and below it a list of available and installed index files. Three icons are used to designate the importance of index files given your current setup as follows:
171            </para>
172            <itemizedlist>
173                <listitem>
174                    <para>
175                        <inlinemediaobject><imageobject><imagedata fileref="security-high.png" format="PNG"/></imageobject></inlinemediaobject> <guilabel>Required</guilabel>
176                    </para>
177                </listitem>
178                <listitem>
179                    <para>
180                        <inlinemediaobject><imageobject><imagedata fileref="security-medium.png" format="PNG"/></imageobject></inlinemediaobject> <guilabel>Recommended</guilabel>
181                    </para>
182                </listitem>
183                <listitem>
184                    <para>
185                        <inlinemediaobject><imageobject><imagedata fileref="security-low.png" format="PNG"/></imageobject></inlinemediaobject> <guilabel>Optional</guilabel>
186                    </para>
187                </listitem>
188            </itemizedlist>
189            <para>
190                You must download all the required files, and if you have plenty of hard drive space left, you can also download the recommended indexes. If an index file is installed, the checkmark shall be checked, otherwise check it to download the relevant index file. Please only download one file at a time, especially for larger files. You might be prompted to enter the administrator password (default in StellarMate is <userinput>smate</userinput>) to install the files. Once you installed all the required files, you can begin using the offline astrometry.net solver immediately.
191            </para>
192        </sect4>
193        <sect4 id="ekos-align-manual-download">
194                <title>Manual Download</title>
195                <para>
196                    You need to <ulink url="http://data.astrometry.net">download</ulink> and install the necessary index files suitable for your telescope+CCD field of view (FOV). You need to install index files covering 100% to 10% of your FOV. For example, if your FOV is 60 arcminutes, you need to install index files covering skymarks from 6 arcminutes (10%) to 60 arcminutes (100%). There are many online tools to calculate FOVs, such as <ulink url="http://starizona.com/acb/ccd/calc_pixel.aspx">Starizona Field of View Calculator</ulink>.
197                </para>
198                <table frame="all">
199                    <title>Index Files</title>
200                    <tgroup cols='3' align='left' colsep='1' rowsep='1'>
201                        <thead>
202                            <row>
203                                <entry>Index Filename</entry>
204                                <entry>FOV (arcminutes)</entry>
205                                <entry>Debian Package</entry>
206                            </row>
207                        </thead>
208                        <tbody>
209                            <row>
210                                <entry>index-4219.fits</entry>
211                                <entry>1400 - 2000</entry>
212                                <entry morerows="11" valign="middle"><ulink url="http://data.astrometry.net/debian/astrometry-data-4208-4219_0.45_all.deb">astrometry-data-4208-4219</ulink></entry>
213                            </row>
214                            <row>
215                                <entry>index-4218.fits</entry>
216                                <entry>1000 - 1400</entry>
217                            </row>
218                            <row>
219                                <entry>index-4217.fits</entry>
220                                <entry>680 - 1000</entry>
221                            </row>
222                            <row>
223                                <entry>index-4216.fits</entry>
224                                <entry>480 - 680</entry>
225                            </row>
226                            <row>
227                                <entry>index-4215.fits</entry>
228                                <entry>340 - 480</entry>
229                            </row>
230                            <row>
231                                <entry>index-4214.fits</entry>
232                                <entry>240 - 340</entry>
233                            </row>
234                            <row>
235                                <entry>index-4213.fits</entry>
236                                <entry>170 - 240</entry>
237                            </row>
238                            <row>
239                                <entry>index-4212.fits</entry>
240                                <entry>120 - 170</entry>
241                            </row>
242                            <row>
243                                <entry>index-4211.fits</entry>
244                                <entry>85 - 120</entry>
245                            </row>
246                            <row>
247                                <entry>index-4210.fits</entry>
248                                <entry>60 - 85</entry>
249                            </row>
250                            <row>
251                                <entry>index-4209.fits</entry>
252                                <entry>42 - 60</entry>
253                            </row>
254                            <row>
255                                <entry>index-4208.fits</entry>
256                                <entry>30 - 42</entry>
257                            </row>
258                            <row>
259                                <entry>index-4207-*.fits</entry>
260                                <entry>22 - 30</entry>
261                                <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4207_0.45_all.deb">astrometry-data-4207</ulink></entry>
262                            </row>
263                            <row>
264                                <entry>index-4206-*.fits</entry>
265                                <entry>16 - 22</entry>
266                                <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4206_0.45_all.deb">astrometry-data-4206</ulink></entry>
267                            </row>
268                            <row>
269                                <entry>index-4205-*.fits</entry>
270                                <entry>11 - 16</entry>
271                                <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4205_0.45_all.deb">astrometry-data-4205</ulink></entry>
272                            </row>
273                            <row>
274                                <entry>index-4204-*.fits</entry>
275                                <entry>8 - 11</entry>
276                                <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4204_0.45_all.deb">astrometry-data-4204</ulink></entry>
277                            </row>
278                            <row>
279                                <entry>index-4203-*.fits</entry>
280                                <entry>5.6 - 8.0</entry>
281                                <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4203_0.45_all.deb">astrometry-data-4203</ulink></entry>
282                            </row>
283                            <row>
284                                <entry>index-4202-*.fits</entry>
285                                <entry>4.0 - 5.6</entry>
286                                <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4202_0.45_all.deb">astrometry-data-4202</ulink></entry>
287                            </row>
288                            <row>
289                                <entry>index-4201-*.fits</entry>
290                                <entry>2.8 - 4.0</entry>
291                                <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4201-1_0.45_all.deb">astrometry-data-4201-1</ulink> <ulink url="http://data.astrometry.net/debian/astrometry-data-4201-2_0.45_all.deb">astrometry-data-4201-2</ulink> <ulink url="http://data.astrometry.net/debian/astrometry-data-4201-3_0.45_all.deb">astrometry-data-4201-3</ulink> <ulink url="http://data.astrometry.net/debian/astrometry-data-4201-4_0.45_all.deb">astrometry-data-4201-4</ulink></entry>
292                            </row>
293                            <row>
294                                <entry>index-4200-*.fits</entry>
295                                <entry>2.0 - 2.8</entry>
296                                <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4200-1_0.45_all.deb">astrometry-data-4200-1</ulink> <ulink url="http://data.astrometry.net/debian/astrometry-data-4200-2_0.45_all.deb">astrometry-data-4200-2</ulink> <ulink url="http://data.astrometry.net/debian/astrometry-data-4200-3_0.45_all.deb">astrometry-data-4200-3</ulink> <ulink url="http://data.astrometry.net/debian/astrometry-data-4200-4_0.45_all.deb">astrometry-data-4200-4</ulink></entry>
297                            </row>
298                        </tbody>
299                    </tgroup>
300                </table>
301                <para>
302                    The Debian packages are suitable for any Debian-based distribution (Ubuntu, Mint, &etc;). If you downloaded the Debian Packages above for your FOV range, you can install them from your favorite package manager, or via the following command:
303                </para>
304                <para>
305                    <command>sudo dpkg -i astrometry-data-*.deb</command>
306                </para>
307                <para>
308                    On the other hand, if you downloaded the FITS index files directly, copy them to <filename role="directory">/usr/share/astrometry</filename> directory.
309                </para>
310                <note>
311                    <para>
312                        It is recommended to use a download manager as such <ulink url="https://addons.mozilla.org/en-US/firefox/addon/downthemall/">DownThemAll!</ulink> for &firefox; to download the Debian packages as browsers' built-in download manager may have problems with download large packages.
313                    </para>
314                </note>
315            </sect4>
316        </sect3>
317
318        <sect3 id="ekos-align-how-to-use">
319            <title>How to Use?</title>
320            <para>
321                Ekos Align Module offers multiple functions to aid you in achieving accurate GOTOs. Start with your mount in home position with the telescope tube looking directly at the celestial pole. For users in Northern Hemisphere, point the telescope as close as possible to Polaris. It is not necessary to perform 2 or 3 star alignments, but it can be useful for some mount types. Make sure your camera is focused and stars are resolved.
322            </para>
323            <itemizedlist>
324                <listitem>
325                    <para>
326                        <guilabel>Capture &amp; Solve</guilabel>: Capture an image and determine what region in the sky the telescope is exactly looking at. The astrometry results include the equatorial coordinates (RA &amp; DEC) of the center of the captured image in addition to pixel scale and field rotation. Depending on the Solver Action settings, the results can be used to Sync the mount or Sync and then Slew to the target location. For example, suppose you slewed the mount to Vega then used <emphasis>Capture &amp; Solve</emphasis>. If the actual telescope location is different from Vega, it will be first synced to the solved coordinate and then Ekos shall command the mount to slew to Vega. After slew is complete, the Alignment module will repeat Capture &amp; Solve process again until the error between reported and actual position falls below the accuracy thresholds (30 arcseconds by default).
327                    </para>
328                </listitem>
329                <listitem>
330                    <para>
331                        <guilabel>Load &amp; Slew</guilabel>: Load a FITS or JPEG file, solve it, and then slew to it.
332                    </para>
333                </listitem>
334                <listitem>
335                    <para>
336                        <guilabel>Polar Alignment Assistant</guilabel>: A simple tool to aid in polar alignment of German Equatorial Mounts.
337                    </para>
338                </listitem>
339                <listitem>
340                    <para>
341                        <guilabel>Legacy Polar Alignment Tool</guilabel>: Measure polar alignment error when a view of the celestial pole (&eg; Polaris for Northern Hemisphere) is not available.
342                    </para>
343                </listitem>
344            </itemizedlist>
345            <warning>
346                <para>
347                    <emphasis role="bold">Never</emphasis> solve an image at or near the celestial pole (unless Ekos Polar Alignment Assistant Tool is used). Slew at least 20 degrees away from the celestial pole before solving the first image. Solving very close to the poles will make your mount pointing worse so avoid it.
348                </para>
349            </warning>
350        </sect3>
351
352        <sect3 id="ekos-align-alignment-settings">
353            <title>Alignment Settings</title>
354            <screenshot>
355                <screeninfo>
356                    Astrometry.net Settings
357                </screeninfo>
358                <mediaobject>
359                    <imageobject>
360                        <imagedata fileref="astrometry_settings.png" format="PNG"/>
361                    </imageobject>
362                    <textobject>
363                        <phrase>Astrometry.net Settings</phrase>
364                    </textobject>
365                </mediaobject>
366            </screenshot>
367            <para>
368                Before you begin the alignment process, select the desired CCD &amp; Telescope. You can explore astrometry.net options that are passed to the astrometry.net solver each time an image is captured:
369            </para>
370            <itemizedlist>
371                <listitem>
372                    <para>
373                        <guilabel>CCD</guilabel>: Select CCD to capture from.
374                    </para>
375                </listitem>
376                <listitem>
377                    <para>
378                        <guilabel>Exposure</guilabel>: Exposure duration in seconds.
379                    </para>
380                </listitem>
381                <listitem>
382                    <para>
383                        <guilabel>Accuracy</guilabel>: Acceptable difference between reported telescope coordinate and actually solved coordinate.
384                    </para>
385                </listitem>
386                <listitem>
387                    <para>
388                        <guilabel>Bin X</guilabel>: Set horizontal binning of the CCD.
389                    </para>
390                </listitem>
391                <listitem>
392                    <para>
393                        <guilabel>Bin Y</guilabel>: Set vertical binning of the CCD.
394                    </para>
395                </listitem>
396                <listitem>
397                    <para>
398                        <guilabel>Scope</guilabel>: Set the active telescope in case you have different Primary and Guide scopes. FOV is re-calculated when selecting a different telescope.
399                    </para>
400                </listitem>
401                <listitem>
402                    <para>
403                        <guilabel>Options</guilabel>: Options that are passed to the astrometry.net solver. Click the edit button <inlinemediaobject><imageobject><imagedata fileref="document-edit.png" format="PNG"/></imageobject></inlinemediaobject> to explore the options in detail.
404                    </para>
405                </listitem>
406                <listitem>
407                    <para>
408                        <guilabel>Solver</guilabel>: Select solver type (Online, Offline, Remote). The remote solver is only available when connecting to a remote device.
409                    </para>
410                </listitem>
411            </itemizedlist>
412            <para>
413                By default, the solver will search all over the sky to determine the coordinates of the captured image. This can <emphasis>take a lot of time</emphasis>; therefore, in order to speed up the solver, you can restrict it to only search within a specified area in the sky designated by the <guilabel>RA</guilabel>, <guilabel>DEC</guilabel>, and <guilabel>Radius</guilabel> options above.
414            </para>
415        </sect3>
416
417        <sect3 id="ekos-align-astrometry-net-settings">
418            <title>Astrometry.net Options</title>
419            <para>
420                Options for offline and online solvers.
421            </para>
422            <screenshot>
423                <screeninfo>
424                    Astrometry.net Options
425                </screeninfo>
426                <mediaobject>
427                    <imageobject>
428                        <imagedata fileref="astrometry_settings.png" format="PNG"/>
429                    </imageobject>
430                    <textobject>
431                        <phrase>Astrometry.net Options</phrase>
432                    </textobject>
433                </mediaobject>
434            </screenshot>
435            <para>
436                Most of the options are sufficient by default. If you have astrometry.net installed in a non-standard location, you can change the paths as necessary.
437            </para>
438            <itemizedlist>
439                <listitem>
440                    <para>
441                        <guilabel>WCS</guilabel>: World-Coordinate-System is a system for embedding equatorial coordinate information within the image. Therefore, when you view the image, you can hover it and view the coordinate for each pixel. You can also click anywhere in the image and command to the telescope to slew there. It is highly recommended to keep this option on.
442                    </para>
443                </listitem>
444                <listitem>
445                    <para>
446                        <guilabel>Verbose</guilabel>: If the solver repeatedly fails to solve, check this option to enable <emphasis>verbose</emphasis> output of the solver to help you identify any problems.
447                    </para>
448                </listitem>
449                <listitem>
450                    <para>
451                        <guilabel>Overlay</guilabel>: Overlay captured images unto the sky map of &kstars;.
452                    </para>
453                </listitem>
454                <listitem>
455                    <para>
456                        <guilabel>Upload JPG</guilabel>: When using online astrometry.net, upload all images are JPEGs to save bandwidth as FITS images can be large.
457                    </para>
458                </listitem>
459            </itemizedlist>
460        </sect3>
461
462        <sect3 id="ekos-align-solver-options">
463            <title>Solver Options</title>
464            <para>
465                Ekos selects and updates the optimal options by default to accelerate the performance of the solver. You may opt to change the options that are passed to the solver in case the default options are not sufficient.
466            </para>
467            <screenshot>
468                <screeninfo>
469                    Solver Settings
470                </screeninfo>
471                <mediaobject>
472                    <imageobject>
473                        <imagedata fileref="solver_settings.png" format="PNG"/>
474                    </imageobject>
475                    <textobject>
476                        <phrase>Solver Settings</phrase>
477                    </textobject>
478                </mediaobject>
479            </screenshot>
480        </sect3>
481
482        <sect3 id="ekos-align-capture-and-solve">
483            <title>Capture &amp; Solve</title>
484            <para>
485                Using Ekos Alignment Module, aligning your mount using the controller's 1, 2, or 3 star alignment is <emphasis>not</emphasis> strictly necessary, though for some mounts it is recommended to perform a rough 1 or 2 star alignment before using Ekos alignment module. If you are using EQMod, you can start using Ekos alignment module right away. A typical workflow for GOTO alignment involves the following steps:
486            </para>
487            <orderedlist>
488                <listitem>
489                    <para>
490                        Set your mount to its home position (usually the NCP for equatorial mounts).
491                    </para>
492                </listitem>
493                <listitem>
494                    <para>
495                        Select <guilabel>Slew to Target</guilabel> in the <guilabel>Solver Action</guilabel>.
496                    </para>
497                </listitem>
498                <listitem>
499                    <para>
500                        Slew to a nearby bright star.
501                    </para>
502                </listitem>
503                <listitem>
504                    <para>
505                        After slew is complete, click <guibutton>Capture &amp; Solve</guibutton>.
506                    </para>
507                </listitem>
508            </orderedlist>
509            <para>
510                If the solver is successful, Ekos will sync and then slew to the star. The results are displayed in the <guilabel>Solution Results</guilabel> tab along with a bullseye diagram that shows the offset the reported telescope coordinates (&ie; where the telescope <emphasis>thinks</emphasis> it is looking at) vs. its actual position in the sky as determined by the solver.
511            </para>
512            <para>
513                Each time the solver is executed and returns successful results, Ekos can run on the following actions:
514            </para>
515            <itemizedlist>
516                <listitem>
517                    <para>
518                        <guilabel>Sync</guilabel>: Syncs the telescope coordinates to the solution coordinates.
519                    </para>
520                </listitem>
521                <listitem>
522                    <para>
523                        <guilabel>Slew to Target</guilabel>: Syncs the telescope coordinates to the solution coordinates and then slew to the target.
524                    </para>
525                </listitem>
526                <listitem>
527                    <para>
528                        <guilabel>Nothing</guilabel>: Just solve the image and display the solution coordinates.
529                    </para>
530                </listitem>
531            </itemizedlist>
532        </sect3>
533
534        <sect3 id="ekos-align-polaralignment">
535            <title>Polar Alignment</title>
536            <sect4 id="ekos-align-plar-alignment-assistant">
537                <title>Polar Alignment Assistant</title>
538                <para>
539                    When setting up a German Equatorial Mount (GEM) for imaging, a critical aspect of capturing long-exposure images is to ensure proper polar alignment. A GEM mount has two axis: Right Ascension (RA) axis and Declination (DE) axis. Ideally, the RA axis should be aligned with the celestial sphere polar axis. A mount's job is to track the star's motion around the sky, from the moment they rise at the eastern horizon, all the way up across the median, and westward until they set.
540                </para>
541
542                <mediaobject>
543                    <videoobject>
544                        <videodata contentdepth="595" contentwidth="800" fileref="https://www.stellarmate.com/images/videos/polar_align.webm"/>
545                    </videoobject>
546                    <caption>
547                        <para>
548                            <phrase>Polar Alignment Assistant</phrase>
549                        </para>
550                    </caption>
551                </mediaobject>
552
553                <para>
554                    In long exposure imaging, a camera is attached to the telescope where the image sensor captures incoming photons from a particular area in the sky. The incident photons have to strike the same photo-site over and over again if we are to gather a clear and crisp image. Of course, actual photons do not behave in this way: optics, atmosphere, seeing quality all scatter and refract photons in one way or another. Furthermore, photons do not arrive uniformly but follow a Poisson distribution. For point-like sources like stars, a point spread function describes how photons are spatially distributed across the pixels. Nevertheless, the <emphasis>overall</emphasis> idea we want to keep the source photons hitting the same pixels. Otherwise, we might end up with an image plagued with various trail artifacts.
555                </para>
556                <screenshot>
557                    <screeninfo>
558                        Polar Alignment
559                    </screeninfo>
560                    <mediaobject>
561                        <imageobject>
562                            <imagedata fileref="alignment_polaris.png" format="PNG"/>
563                        </imageobject>
564                        <textobject>
565                            <phrase>Polar Alignment</phrase>
566                        </textobject>
567                    </mediaobject>
568                </screenshot>
569                <para>
570                    Since mounts are not perfect, they cannot perfectly keep track of object as it transits across the sky. This can stem from many factors, one of which is the misalignment of the mount's Right Ascension axis with respect to the celestial pole axis. Polar alignment removes one of the biggest sources of tracking errors in the mount, but other sources of error still play a factor. If properly aligned, some mounts can track an object for a few minutes with the only deviation of 1-2 arcsec RMS.
571                </para>
572                <para>
573                    However, unless you have a top of the line mount, then you'd probably want to use an autoguider to keep the same star locked in the same position over time. Despite all of this, if the axis of the mount is not properly aligned with the celestial pole, then even a mechanically-perfect mount would lose tracking with time. Tracking errors are proportional to the magnitude of the misalignment. It is therefore very important for long exposure imaging to get the mount polar aligned to reduce any residual errors as it spans across the sky.
574                </para>
575                <para>
576                    Before starting the process, point the mount as close as possible to the celestial pole. If you are living in the Northern Hemisphere, point it as close as possible to Polaris.
577                </para>
578                <para>
579                    The tool works by capturing and solving three images. After capturing each, the mount rotates by a fixed amount and another image is captured and solved.
580                </para>
581                <screenshot>
582                    <screeninfo>
583                        Polar Alignment Assistant
584                    </screeninfo>
585                    <mediaobject>
586                        <imageobject>
587                            <imagedata fileref="polar_assistant_main.png" format="PNG"/>
588                        </imageobject>
589                        <textobject>
590                            <phrase>Polar Alignment Assistant</phrase>
591                        </textobject>
592                    </mediaobject>
593                </screenshot>
594                <para>
595                    After the first capture, you can rotate the mount by a specific amount (default 30 degrees) either West or East. After selecting the magnitude and direction, click <guibutton>Next</guibutton> to continue and the mount will be rotated. Once the rotation is complete you shall be asked to take another capture, unless you have checked <guilabel>Auto Mode</guilabel>. In Automated mode, the rest of the process will continue with the same settings and direction until a total of three images are captured.
596                </para>
597                <para>
598                    Since the mount's true RA/DE are resolved by astrometry, we can construct a unique circle from the three centers found in the astrometry solutions. The circle's center is where the mount rotates about (RA Axis) and ideally, this point should coincide with the celestial pole. However, if there is a misalignment, then Ekos draws a correction vector. This correction vector can be placed anywhere in the image. Next, <emphasis>refresh</emphasis> the camera feed and make corrections to the mount's Altitude and Azimuth knobs until the star is located in the designated cross-hair. To make it easy to make corrections, expand the view by clicking on the Fullscreen button <inlinemediaobject><imageobject><imagedata fileref="view-fullscreen.png" format="PNG"/></imageobject></inlinemediaobject>.
599                </para>
600                <screenshot>
601                    <screeninfo>
602                        Polar Alignment Result
603                    </screeninfo>
604                    <mediaobject>
605                        <imageobject>
606                            <imagedata fileref="polar_alignment_result.png" format="PNG"/>
607                        </imageobject>
608                        <textobject>
609                            <phrase>Polar Alignment Result</phrase>
610                        </textobject>
611                    </mediaobject>
612                </screenshot>
613                <para>
614                    If you are away from StellarMate or PC, you can use your Tablet to monitor the camera feed while making corrections. Use the <link linkend="ekos-tutorials-viewer">StellarMate's web-based VNC viewer</link> or use any VNC Client on your tablet to access StellarMate. If Ekos is running on your PC, you can use applications like TeamViewer to achieve the same results. The following is a video demonstrating how to utilize the Polar Alignment Assistant tool.
615                </para>
616                <mediaobject>
617                    <videoobject>
618                        <videodata contentdepth="315" contentwidth="560" fileref="https://www.youtube.com/embed/sx6Zz9lNd5Q"/>
619                    </videoobject>
620                    <caption>
621                        <para>
622                            <phrase>Polar Alignment</phrase>
623                        </para>
624                    </caption>
625                </mediaobject>
626            </sect4>
627            <sect4 id="ekos-align-legacy-polar-alignment-workflow">
628                <title>Legacy Polar Alignment Workflow</title>
629                <para>
630                    Using the Polar Alignment mode, Ekos can measure and correct the polar alignment errors. To measure Azimuth error, point your mount to a star close to the meridian. If you live in the northern hemisphere, you will point the mount toward the southern meridian. Click on <guibutton>Measure Az Error</guibutton> to begin the process. Ekos will try to measure the drift between two images and calculates the error accordingly. You can ask Ekos to correct Azimuth error by clicking on the <guibutton>Correct Az Error</guibutton> button. Ekos will slew to a new location and asks you to adjust the mount's azimuth knobs until the star is in the center of the Field of View. You can use the Focus Module's <link linkend="focus-focuser-group">Framing feature</link> to take a look at the image as you make your adjustments.
631                </para>
632                <para>
633                    Similarly, to measure Altitude error, click on the <guibutton>Measure Alt Error</guibutton> button. You need to point your mount either east or west and set the <guilabel>Altitude Direction</guilabel> combo box accordingly. Ekos will take two images and calculates the error. You can ask Ekos to correct Altitude error by clicking on the <guibutton>Correct Alt Error</guibutton> button. As with Azimuth correction, Ekos will slew to a new location and asks you to adjust the mount's altitude knobs until the star is in the center of the FOV.
634                </para>
635                <para>
636                    After making a correction, it is recommended to measure the Azimuth and Altitude errors again and gauge the difference. You may need to perform the correction more than once to obtain optimal results.
637                </para>
638                <para>
639                    Before starting the Polar Alignment tool, you must complete the GOTO Workflow above for at least one point in the sky. Once your mount is aligned, proceed with the following (assuming you live in the northern hemisphere):
640                </para>
641                <orderedlist>
642                    <listitem>
643                        <para>
644                            Slew to a <emphasis role="bold">bright</emphasis> star (4th magnitude or below) near the southern meridian (Azimuth 180). Make sure <guilabel>Slew to Target</guilabel> is selected. Capture and solve. The star should be exactly centered in your CCD field of view.
645                        </para>
646                    </listitem>
647                    <listitem>
648                        <para>
649                            Switch mode to <guilabel>Polar Alignment</guilabel>. Click <guibutton>Measure Az Error</guibutton>. It will ask you to slew to a star at the southern meridian which we already done. Click <guibutton>Continue</guibutton>. Ekos will now perform the error calculation.
650                        </para>
651                    </listitem>
652                    <listitem>
653                        <para>
654                            If all goes well, the error is displayed in the output boxes. To correct for the error, click <guibutton>Correct Az Error</guibutton>. Ekos will now slew to a different point in the sky, and you will be required to <emphasis role="bold">ONLY</emphasis> adjust the mount's azimuth knobs to center the star in the field of view. The most convenient way of monitoring the star field is by going to the <guilabel>Focus</guilabel> module and clicking <guibutton>Start Framing</guibutton>. If the azimuth error is great, the star might not be visible in the CCD field of view, and therefore you have to make <emphasis>blind</emphasis> adjustments (or simply look through the finderscope) until the star enters the CCD FOV.
655                        </para>
656                    </listitem>
657                    <listitem>
658                        <para>
659                            Begin your azimuth adjustments until the bright star you slewed to initially is as close to center as you can get it.
660                        </para>
661                    </listitem>
662                    <listitem>
663                        <para>
664                            <guibutton>Stop Framing</guibutton> in the <link linkend="focus-focuser-group">Focus module</link>.
665                        </para>
666                    </listitem>
667                    <listitem>
668                        <para>
669                            Repeat the <guibutton>Measure Az Error</guibutton> to ensure we indeed corrected the error. You might have to run it more than once to ensure the results are valid.
670                        </para>
671                    </listitem>
672                    <listitem>
673                        <para>
674                            Switch mode to <guilabel>GOTO</guilabel>.
675                        </para>
676                    </listitem>
677                    <listitem>
678                        <para>
679                            Now slew to a <emphasis role="bold">bright</emphasis> star either on the eastern or western horizon, preferably above 20 degrees of altitude. It has to be as close as possible to the eastern (90 azimuth) or western (270) cardinal points.
680                        </para>
681                    </listitem>
682                    <listitem>
683                        <para>
684                            After slew is complete, capture and solve. The star should be dead center in the CCD FOV now.
685                        </para>
686                    </listitem>
687                    <listitem>
688                        <para>
689                            Switch mode to <guilabel>Polar Alignment</guilabel>.
690                        </para>
691                    </listitem>
692                    <listitem>
693                        <para>
694                            Click <guibutton>Measure Alt Error</guibutton>. It will ask you to slew to a star at either the eastern (Azimuth 90) or western (Azimuth 270) horizon which we already done. Click <guibutton>Continue</guibutton>. Ekos will now perform the error calculation.
695                        </para>
696                    </listitem>
697                    <listitem>
698                        <para>
699                            To correct for the error, click <guibutton>Correct Alt Error</guibutton>. Ekos will now slew to a different point in the sky, and you will be required to <emphasis role="bold">ONLY</emphasis> adjust the mount's altitude knobs to center the star in the field of view. Start framing as done before in the <link linkend="focus-focuser-group">focus module</link> to help you with the centering.
700                        </para>
701                    </listitem>
702                    <listitem>
703                        <para>
704                            After centering is complete, stop framing.
705                        </para>
706                    </listitem>
707                    <listitem>
708                        <para>
709                            Repeat the <guibutton>Measure Alt Error</guibutton> to ensure we indeed corrected the error. You might have to run it more than once to ensure the results are valid.
710                        </para>
711                    </listitem>
712                    <listitem>
713                        <para>
714                            Polar alignment is now complete!</para>
715                    </listitem>
716                </orderedlist>
717                <warning>
718                    <para>
719                        The mount may slew to a dangerous position and you might risk hitting the tripod and/or other equipment. Carefully monitor the mount's motion. Use at your own risk.
720                    </para>
721                </warning>
722            </sect4>
723        </sect3>
724    </sect2>
725