Warning, /education/kstars/doc/ekos-align.docbook is written in an unsupported language. File is not indexed.

0001 <sect1 id="ekos-align">
0002     <title>Align</title>
0003     <indexterm>
0004         <primary>Tools</primary>
0005         <secondary>Ekos</secondary>
0006         <tertiary>Align</tertiary>
0007     </indexterm>
0008     <sect2 id="ekos-align-introduction">
0009         <title>Introduction</title>
0010         <screenshot>
0011             <screeninfo>
0012                 Ekos Align Module
0013             </screeninfo>
0014             <mediaobject>
0015                 <imageobject>
0016                     <imagedata fileref="ekos_astrometry.png" format="PNG"/>
0017                 </imageobject>
0018                 <textobject>
0019                     <phrase>Ekos Align Module</phrase>
0020                 </textobject>
0021             </mediaobject>
0022         </screenshot>
0023         <para>
0024             The Ekos Alignment Module enables highly accurate GOTOs and can measure and correct polar alignment errors. This is possible thanks to third-party plate-solving technology. The main plate-solving software used is the StellarSolver package, which itself makes use of the offline (and online) astrometry.net, ASTAP and Watney solvers.  Ekos begins by capturing an image of a star field, feeding that image to the chosen solver (e.g. see <ulink url="https://astrometry.net">astrometry.net</ulink>, <ulink url="https://github.com/rlancaste/stellarsolver">StellarSolver</ulink> or <ulink url="https://www.hnsky.org/astap">ASTAP</ulink>), and gets in return the central coordinates (RA, DEC), scale, and orientation of the image. The solver essentially performs pattern recognition against a catalog of millions of stars. Once the coordinates are determined, the true pointing of the telescope is known.
0025         </para>
0026         <para>
0027             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 correct the discrepancy by syncing to the new coordinates, and then slewing the mount to the desired target originally requested.
0028         </para>
0029         <para>
0030             Ekos also provides a Polar Alignment Assistant Tool to correct polar alignment errors. It takes three images, slewing between the images, and calculates the offset between the mount axis and polar axis. It feeds back to the user the altitude and azimuth adjustments needed to align these axes. These images are typically taken near the celestial pole (close to Polaris for Northern Hemisphere) but can work well taken from anywhere, usually starting near the meridian and slewing either East or West.
0031         </para>
0032         <para>
0033             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.
0034         </para>
0035     </sect2>
0036 
0037         <sect2 id="ekos-align-typical">
0038             <title>Typical use</title>
0039             <para>
0040                 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:
0041             </para>
0042             <orderedlist>
0043                 <listitem>
0044                     <para>
0045                         Start KStars and Ekos and connect to INDI. 
0046                     </para>
0047                 </listitem>
0048                 <listitem>
0049                     <para>
0050                         Unpark your mount from its home position (usually the NCP for equatorial mounts).
0051                     </para>
0052                 </listitem>
0053                 <listitem>
0054                     <para>
0055                         Slew to a nearby bright star using the slew telescope command in the SkyMap using the <guilabel>Slew the telescope to the mouse-pointer position</guilabel> command.
0056                     </para>
0057                 </listitem>
0058                 <listitem>
0059                     <para>
0060                         Select <guilabel>Slew to Target</guilabel> in the <guilabel>Solver Action</guilabel> on the Align page.
0061                     </para>
0062                 </listitem>
0063                 <listitem>
0064                     <para>
0065                         After slew is complete, click <guibutton>Capture &amp; Solve</guibutton> on the Align page.
0066                     </para>
0067                 </listitem>
0068             </orderedlist>
0069             <para>
0070                 Align will capture an image and try to solve it. If the solver is successful, Ekos will send a sync command to the mount 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 vs. its actual pointing position in the sky as determined by the solver). Align will stop if it is within the desired error tolerance, otherwise it will repeat the Slew/Capture/Solve/Sync process until it is within tolerance.
0071             </para>
0072             <para>
0073                 Each time the solver is executed and returns successful results, Ekos can run on the following actions:
0074             </para>
0075             <itemizedlist>
0076                 <listitem>
0077                     <para>
0078                         <guilabel>Sync</guilabel>: Syncs the telescope coordinates to the solution coordinates.
0079                     </para>
0080                 </listitem>
0081                 <listitem>
0082                     <para>
0083                         <guilabel>Slew to Target</guilabel>: Syncs the telescope coordinates to the solution coordinates and then slew to the target.
0084                     </para>
0085                 </listitem>
0086                 <listitem>
0087                     <para>
0088                         <guilabel>Nothing</guilabel>: Just solve the image and display the solution coordinates.
0089                     </para>
0090                 </listitem>
0091             </itemizedlist>
0092         </sect2>
0093     
0094     <sect2 id="ekos-solver-options">
0095       <title>Configure StellarSolver Options </title>
0096         <screenshot>
0097             <screeninfo>
0098                 StellarSolver Options
0099             </screeninfo>
0100             <mediaobject>
0101                 <imageobject>
0102                     <imagedata fileref="ekos_stellarsolver_options.png" format="PNG"/>
0103                 </imageobject>
0104                 <textobject>
0105                     <phrase>StellarSolver Options</phrase>
0106                 </textobject>
0107             </mediaobject>
0108         </screenshot>
0109       <para>
0110         To use the solvers, you must first configure the StellarSolver options. The above page is displayed when clicking on the <guilabel>Options</guilabel> button on the lower right of the Align page, then selecting the <guilabel>StellarSolver Options</guilabel> tab. Start with the <guilabel>Builtin method for solver</guilabel> <guilabel>Source Extraction method</guilabel> so that each solver uses its preferred star-extraction code. For <guilabel>Solving Method</guilabel> we recommend choosing <guilabel>Internal Solver</guilabel> to use StellarSolver's copy of the Astrometry.net code, or choose <guilabel>Local ASTAP</guilabel> if you prefer that. The online astrometry solver is accurate, but can take a long time to solve because of all the data transfer required. For <guilabel>Options Profile</guilabel>, start with the <guilabel>1-Default</guilabel> profile.
0111       </para>
0112       <para>
0113         There are two other minor options. <guilabel>WCS</guilabel> or  World-Coordinate-System is a system for embedding equatorial coordinate information within the image. When you view a solved 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. <guilabel>Overlay</guilabel> overlays captured images unto the sky map of &kstars;.
0114         </para>
0115     </sect2>
0116     
0117     <sect2 id="ekos-solver-external">
0118       <title>Configure StellarSolver External Programs </title>
0119         <screenshot>
0120             <screeninfo>
0121                 StellarSolver External Programs
0122             </screeninfo>
0123             <mediaobject>
0124                 <imageobject>
0125                     <imagedata fileref="ekos_stellarsolver_external.png" format="PNG"/>
0126                 </imageobject>
0127                 <textobject>
0128                     <phrase>StellarSolver External Programs</phrase>
0129                 </textobject>
0130             </mediaobject>
0131         </screenshot>
0132       <para>
0133         This is only required if you choose one of the external programs for your <guilabel>Solving Method</guilabel>. If you choose <guilabel>Internal Solver</guilabel>, then it is not necessary.
0134         </para>
0135       <para>
0136         You will need to make sure the paths are correct for the solver you choose. The top menu item <guilabel>select to load one of the default sets</guilabel> usually configures the boxes correctly.
0137         </para>
0138     </sect2>
0139 
0140     <sect2 id="ekos-solver-scale">
0141       <title>Configure StellarSolver Scale and Position </title>
0142         <screenshot>
0143             <screeninfo>
0144                 StellarSolver Scale and Position
0145             </screeninfo>
0146             <mediaobject>
0147                 <imageobject>
0148                     <imagedata fileref="ekos_stellarsolver_scale.png" format="PNG"/>
0149                 </imageobject>
0150                 <textobject>
0151                     <phrase>StellarSolver Scale and Position</phrase>
0152                 </textobject>
0153             </mediaobject>
0154         </screenshot>
0155       <para>
0156         This page tells Ekos whether you want to constrain your plate-solving search by scale or position.
0157         </para><para>Scale can be the image width in degrees (<guilabel>dw</guilabel>), the image width in arc-minutes (<guilabel>aw</guilabel>), or the pixel width in arc-seconds (<guilabel>app</guilabel>). All should work, but arc-seconds per pixel is recommended. Typically you want to use this constraint for faster solving, so we recommend you check this box. The system doesn't require that the scale be exactly right--it allows deviations of 10-20%. However, frequently issues related to solving are due to an inaccurate scale being used. Therefore, if you have plate-solving problems, you may want to uncheck <guilabel>Use Scale</guilabel> until those issues are resolved. This will likely result in longer solving times. <guilabel>Auto-update</guilabel> will automatically fill the scale box with the scale found in the most-recent successful solve.
0158         </para><para>The RA and DEC positions are usually filled in from the position the telescope thinks it is pointing. Naturally, the system doesn't require an exactly correct positional constraint--afterall the purpose of plate-solving is to find that position. The maximum distance in degrees from the specified position to the actual position is given by the <guilabel>Radius</guilabel> field. Plate-solving will fail if the specified position is further away.  Typically you want to enable <guilabel>Use Position</guilabel> for faster solving, so we recommend you check this box. However, frequently issues related to solving are due to using a poor positional estimate (e.g. the telescope is significantly misaligned). Therefore, if you have plate-solving problems, you may want to uncheck <guilabel>Use Position</guilabel> until those issues are resolved. As mentioned, this will result in longer solving times. <guilabel>Auto-update</guilabel> will fill the position box with the position found in the most-recent successful solve. However, a slew will update the position to the position where the telescope thinks it is pointing after the slew.
0159         </para>
0160     </sect2>
0161 
0162     <sect2 id="ekos-align-profiles">
0163       <title>Configure StellarSolver Profiles </title>
0164         <screenshot>
0165             <screeninfo>
0166                 StellarSolver Profiles
0167             </screeninfo>
0168             <mediaobject>
0169                 <imageobject>
0170                     <imagedata fileref="ekos_stellarsolver_profiles.png" format="PNG"/>
0171                 </imageobject>
0172                 <textobject>
0173                     <phrase>StellarSolver Profiles</phrase>
0174                 </textobject>
0175             </mediaobject>
0176         </screenshot>
0177         <para>
0178           This applies if you are using the (recommended) <guilabel>Internal Solver</guilabel> <guilabel>Solving Method</guilabel>.
0179       </para><para>
0180           You can choose an <guilabel>Options Profile</guilabel> on the <guilabel>StellarSolver Options</guilabel> tab. Profiles are simply collections of parameters to configure the performance of the star-extraction and plate-solving system inside of StellarSolver.  The <guilabel>1-Default</guilabel> profile is the recommended one to start with. There are a few other possible profiles such as <guilabel>Large Scale Solving</guilabel>, <guilabel>Small Scale Solving</guilabel>, and <guilabel>Single Thread Solving</guilabel>.
0181         </para><para>In the <guilabel>Align Options Profile Editor</guilabel> tab you can view and edit profiles. There are many parameters, most of which you need not change to solve issues. There are 3 types of parameters.
0182          </para>
0183         <itemizedlist>
0184          <listitem><para>The top section labelled <guilabel>Sextractor Parameters</guilabel> (with column headings <guilabel>Extraction Parameters</guilabel>, <guilabel>Deblending Params</guilabel>, and <guilabel>Photometry Params</guilabel>) are star extraction parameters--that is those that help find stars in your image.</para></listitem>
0185          <listitem><para>The second section labelled <guilabel>Star Filtering Parameters</guilabel> filters/reduces the number of stars extracted before sending the list to either the plate-solver (when aligning or polar-aligning), or to autofocus or the internal guider (when just a list of stars is needed).</para></listitem>
0186          <listitem><para>The third section labelled Astrometry Parameters adjusts the performance of plate solving.</para></listitem>
0187         </itemizedlist>
0188         <para>
0189           All the input fields have tooltips that are displayed if you hover your mouse over the input box.
0190           </para><para>You can make changes to the values and save the profile if you like, or restore the profile's original values.
0191           </para>
0192         <sect3 id="profile-star-extraction">
0193           <title>Star-Extraction Parameters</title>
0194           <para>
0195             The column headings are links to the Sextractor manual which is the main source for these parameters. View those links to find details on all the parameters. We will touch upon some of the parameters you might consider adjusting. However, it's probably best not to get into the weeds of modifying most of these values.
0196             </para>
0197         <itemizedlist>
0198          <listitem><para><guilabel>Thresh Multiple</guilabel> and <guilabel>Thresh Offset</guilabel> relate to how sensitive the system will be to pixel values. The level of the background is multiplied by <guilabel>Thresh Multiple</guilabel> and then <guilabel>Thresh Offset</guilabel> is added to that. If a pixel's value exceeds the result, then it may be used to detect a star. Therefore, lower values (especially for multiple) may cause even dim pixels to be detected as stars. Higher values will reduce the number of stars detected.</para></listitem>
0199          <listitem><para><guilabel>Min Area</guilabel> is the minimum area for a star detection--area is in square pixels where all pixels have higher-than-threshold pixel values. If you are detecting small noise spikes as stars, you might want to increase this. If you are not detecting desired smaller real stars, perhaps your <guilabel>Min Area</guilabel> is too high.</para></listitem>
0200          <listitem><para><guilabel>Conv FWHM</guilabel> should be adjusted to roughly the seeing in your area in pixels. The image is smoothed by this amount before star detection is initiated.</para></listitem>
0201         </itemizedlist>
0202         </sect3>    
0203 
0204         <sect3 id="profile-star-filtering">
0205         <title>Star-Filtering Parameters</title>
0206           <para>
0207             This filtering is done for the sake of speed mostly, as well as for removing clipped stars, or very elliptical objects which might be galaxies. We will touch upon some of the parameters you might consider adjusting. Zero values for these parameters disable the filter. However, once again it's probably best not to get into the weeds of modifying most of these values.
0208             </para>
0209              <itemizedlist>
0210          <listitem><para><guilabel>Initial Keep</guilabel> and <guilabel>Stars Keep #</guilabel> relates to the number of stars returned by the system. The system will initially run its detection algorithm and find some number of possible detections. It will filter that list, keeping only the <guilabel>Initial Keep</guilabel> brightest stars. It will then run the rest of the filtering, including computing the HFR of all those stars and  finally only return a list of <guilabel>Stars Keep #</guilabel> stars. None of the uses (alignment, autofocus, guiding) of StellarSolver require thousands of stars to be able to do their job, and the more stars processed the slower the operation. An initial list of 1000 stars and a few hundred returned stars should be sufficient for most applications.</para></listitem>
0211          <listitem><para><guilabel>Max Size</guilabel> and <guilabel>Min Size</guilabel> filter stars by their sizes (pixel diameters), and are similar in usage to <guilabel>Min Area</guilabel> above.</para></listitem>
0212          <listitem><para><guilabel>Max Ellipse</guilabel> specifies how elliptical a star can be before being removed. 2 would mean the larger axis could be twice as large as the smaller axis.</para></listitem>
0213          <listitem><para><guilabel>Cut Brightest</guilabel> and <guilabel>Cut Dimmest</guilabel> remove the X% brightest or dimmest stars from consideration. <guilabel>Sat Limit</guilabel> removes stars whose pixel values exceed that percentage of the maximum pixel value--to remove saturated stars.</para></listitem>
0214              </itemizedlist>
0215         </sect3>
0216 
0217         <sect3 id="profile-plate-solving">
0218           <title>Plate-Solving Parameters</title>
0219           <para>
0220             These plate-solving parameters mostly relate to computation resources.
0221             </para>
0222              <itemizedlist>
0223          <listitem><para><guilabel>Search Radius</guilabel> is the distance from the position estimate in degrees that may be searched if <guilabel>Use Position</guilabel> is checked. </para></listitem>
0224          <listitem><para><guilabel>Maximum Time</guilabel> is the maximum number of seconds that the plate-solving will run before it times out.</para></listitem>
0225              </itemizedlist>
0226         </sect3>    
0227     </sect2>    
0228     
0229     <sect2 id="ekos-align-download-index-files">
0230       <title>Download Index Files</title>
0231       <para>
0232         Index files are required if you choose the <guilabel>Internal Solver</guilabel> or <guilabel>Local Astrometry</guilabel> <guilabel>Solving Method</guilabel>.
0233         </para>
0234         <para>
0235             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.
0236         </para>
0237         <sect3 id="ekos-align-automatic-download">
0238             <title>Automatic Download</title>
0239             <screenshot>
0240                 <screeninfo>
0241                     Astrometry.net Indexes Download
0242                 </screeninfo>
0243                 <mediaobject>
0244                     <imageobject>
0245                         <imagedata fileref="astrometry_indexes_settings.png" format="PNG"/>
0246                     </imageobject>
0247                     <textobject>
0248                         <phrase>Astrometry.net Indexes Download</phrase>
0249                     </textobject>
0250                 </mediaobject>
0251             </screenshot>
0252             <para>
0253                 Automatic download is only available for Ekos users on &Linux; &amp; &MacOS;. For &Windows; users, please download ANSVR solver.
0254             </para>
0255             <para>
0256                 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:
0257             </para>
0258             <itemizedlist>
0259                 <listitem>
0260                     <para>
0261                         <inlinemediaobject><imageobject><imagedata fileref="security-high.png" format="PNG"/></imageobject></inlinemediaobject> <guilabel>Required</guilabel>
0262                     </para>
0263                 </listitem>
0264                 <listitem>
0265                     <para>
0266                         <inlinemediaobject><imageobject><imagedata fileref="security-medium.png" format="PNG"/></imageobject></inlinemediaobject> <guilabel>Recommended</guilabel>
0267                     </para>
0268                 </listitem>
0269                 <listitem>
0270                     <para>
0271                         <inlinemediaobject><imageobject><imagedata fileref="security-low.png" format="PNG"/></imageobject></inlinemediaobject> <guilabel>Optional</guilabel>
0272                     </para>
0273                 </listitem>
0274             </itemizedlist>
0275             <para>
0276                 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.
0277             </para>
0278         </sect3>
0279         <sect3 id="ekos-align-manual-download">
0280                 <title>Manual Download</title>
0281                 <para>
0282                     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>.
0283                 </para>
0284                 <table frame="all">
0285                     <title>Index Files</title>
0286                     <tgroup cols='3' align='left' colsep='1' rowsep='1'>
0287                         <thead>
0288                             <row>
0289                                 <entry>Index Filename</entry>
0290                                 <entry>FOV (arcminutes)</entry>
0291                                 <entry>Debian Package</entry>
0292                             </row>
0293                         </thead>
0294                         <tbody>
0295                             <row>
0296                                 <entry>index-4219.fits</entry>
0297                                 <entry>1400 - 2000</entry>
0298                                 <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>
0299                             </row>
0300                             <row>
0301                                 <entry>index-4218.fits</entry>
0302                                 <entry>1000 - 1400</entry>
0303                             </row>
0304                             <row>
0305                                 <entry>index-4217.fits</entry>
0306                                 <entry>680 - 1000</entry>
0307                             </row>
0308                             <row>
0309                                 <entry>index-4216.fits</entry>
0310                                 <entry>480 - 680</entry>
0311                             </row>
0312                             <row>
0313                                 <entry>index-4215.fits</entry>
0314                                 <entry>340 - 480</entry>
0315                             </row>
0316                             <row>
0317                                 <entry>index-4214.fits</entry>
0318                                 <entry>240 - 340</entry>
0319                             </row>
0320                             <row>
0321                                 <entry>index-4213.fits</entry>
0322                                 <entry>170 - 240</entry>
0323                             </row>
0324                             <row>
0325                                 <entry>index-4212.fits</entry>
0326                                 <entry>120 - 170</entry>
0327                             </row>
0328                             <row>
0329                                 <entry>index-4211.fits</entry>
0330                                 <entry>85 - 120</entry>
0331                             </row>
0332                             <row>
0333                                 <entry>index-4210.fits</entry>
0334                                 <entry>60 - 85</entry>
0335                             </row>
0336                             <row>
0337                                 <entry>index-4209.fits</entry>
0338                                 <entry>42 - 60</entry>
0339                             </row>
0340                             <row>
0341                                 <entry>index-4208.fits</entry>
0342                                 <entry>30 - 42</entry>
0343                             </row>
0344                             <row>
0345                                 <entry>index-4207-*.fits</entry>
0346                                 <entry>22 - 30</entry>
0347                                 <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4207_0.45_all.deb">astrometry-data-4207</ulink></entry>
0348                             </row>
0349                             <row>
0350                                 <entry>index-4206-*.fits</entry>
0351                                 <entry>16 - 22</entry>
0352                                 <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4206_0.45_all.deb">astrometry-data-4206</ulink></entry>
0353                             </row>
0354                             <row>
0355                                 <entry>index-4205-*.fits</entry>
0356                                 <entry>11 - 16</entry>
0357                                 <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4205_0.45_all.deb">astrometry-data-4205</ulink></entry>
0358                             </row>
0359                             <row>
0360                                 <entry>index-4204-*.fits</entry>
0361                                 <entry>8 - 11</entry>
0362                                 <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4204_0.45_all.deb">astrometry-data-4204</ulink></entry>
0363                             </row>
0364                             <row>
0365                                 <entry>index-4203-*.fits</entry>
0366                                 <entry>5.6 - 8.0</entry>
0367                                 <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4203_0.45_all.deb">astrometry-data-4203</ulink></entry>
0368                             </row>
0369                             <row>
0370                                 <entry>index-4202-*.fits</entry>
0371                                 <entry>4.0 - 5.6</entry>
0372                                 <entry><ulink url="http://data.astrometry.net/debian/astrometry-data-4202_0.45_all.deb">astrometry-data-4202</ulink></entry>
0373                             </row>
0374                             <row>
0375                                 <entry>index-4201-*.fits</entry>
0376                                 <entry>2.8 - 4.0</entry>
0377                                 <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>
0378                             </row>
0379                             <row>
0380                                 <entry>index-4200-*.fits</entry>
0381                                 <entry>2.0 - 2.8</entry>
0382                                 <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>
0383                             </row>
0384                         </tbody>
0385                     </tgroup>
0386                 </table>
0387                 <para>
0388                     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:
0389                 </para>
0390                 <para>
0391                     <command>sudo dpkg -i astrometry-data-*.deb</command>
0392                 </para>
0393                 <para>
0394                     On the other hand, if you downloaded the FITS index files directly, copy them to <filename role="directory">/usr/share/astrometry</filename> directory.
0395                 </para>
0396                 <note>
0397                     <para>
0398                         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.
0399                     </para>
0400                 </note>
0401             </sect3>
0402         </sect2>
0403 
0404     <sect2 id="ekos-align-get-astrometry">
0405         <title>Optionally get astrometry.net</title>
0406 
0407         <para>
0408           This is only required if you choose the <guilabel>Local Astrometry</guilabel> option for <guilabel>Source Extraction Method</guilabel> which is no longer recommended.
0409           </para>
0410         <note>
0411             <para>
0412                 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.
0413             </para>
0414         </note>
0415         <screenshot>
0416             <screeninfo>
0417                 Ekos Remote Astrometry
0418             </screeninfo>
0419             <mediaobject>
0420                 <imageobject>
0421                     <imagedata fileref="ekos_remote_astrometry.png" format="PNG"/>
0422                 </imageobject>
0423                 <textobject>
0424                     <phrase>Ekos Remote Astrometry</phrase>
0425                 </textobject>
0426             </mediaobject>
0427         </screenshot>
0428         <variablelist>
0429             <varlistentry>
0430                 <term>&Windows;</term>
0431                 <listitem>
0432                     <para>
0433                         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.
0434                     </para>
0435                     <para>
0436                         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:
0437                     </para>
0438                     <screenshot>
0439                         <screeninfo>
0440                             ANSVR Parameters
0441                         </screeninfo>
0442                         <mediaobject>
0443                             <imageobject>
0444                                 <imagedata fileref="astrometry_windows_ansvr.png" format="PNG"/>
0445                             </imageobject>
0446                             <textobject>
0447                                 <phrase>ANSVR Parameters</phrase>
0448                             </textobject>
0449                         </mediaobject>
0450                     </screenshot>
0451                     <para>
0452                         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.
0453                     </para>
0454                     <para>
0455                         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;.
0456                     </para>
0457                 </listitem>
0458             </varlistentry>
0459             <varlistentry>
0460                 <term>&MacOS;</term>
0461                 <listitem>
0462                     <para>
0463                         Astrometry.net is already included with &kstars; for &MacOS;, so no need to install it.
0464                     </para>
0465                 </listitem>
0466             </varlistentry>
0467             <varlistentry>
0468                 <term>&Linux;</term>
0469                 <listitem>
0470                     <para>
0471                         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;:
0472                     </para>
0473                     <para>
0474                         <command>sudo apt-get install astrometry.net</command>
0475                     </para>
0476                 </listitem>
0477             </varlistentry>
0478         </variablelist>
0479     </sect2>
0480     
0481         <sect2 id="ekos-align-how-to-use">
0482             <title>How to Use?</title>
0483             <para>
0484                 Ekos Align Module offers multiple functions to aid you in achieving accurate GOTOs. For some mounts it is useful to start your session 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.
0485             </para>
0486             <para>
0487               At the top left of the Align page you can find two solver commands, and two actions to take given the solver solution.
0488             </para>
0489             <itemizedlist>
0490                 <listitem>
0491                     <para>
0492                         <guilabel>Capture &amp; Solve</guilabel>: Capture an image and determine exactly where in the sky the telescope is pointing. The astrometry results include the equatorial coordinates (RA &amp; DEC) of the center of the captured image and the 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).
0493                     </para>
0494                 </listitem>
0495                 <listitem>
0496                     <para>
0497                         <guilabel>Load &amp; Slew</guilabel>: Load a FITS or JPEG file, solve it, and then slew to it.
0498                     </para>
0499                 </listitem>
0500             </itemizedlist>
0501             <warning>
0502                 <para>
0503                     <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.
0504                 </para>
0505             </warning>
0506         </sect2>
0507         
0508         <sect2 id="ekos-align-alignment-settings">
0509             <title>Alignment Settings</title>
0510             <para>
0511                 Before you begin the alignment process, select the desired optical train. You can explore astrometry.net options that are passed to the astrometry.net solver each time an image is captured:
0512             </para>
0513             <itemizedlist>
0514                 <listitem>
0515                     <para>
0516                         <guilabel>Accuracy</guilabel>: Acceptable difference between the desired target position and the solved coordinates from the captured image. If the difference exceeds this many arc-seconds, then the system will continue to capture, solve and slew until the solved position is close enough to the target position.
0517                     </para>
0518                 </listitem>
0519                 <listitem>
0520                     <para>
0521                         <guilabel>Train</guilabel>: Select the Optical Train which will be used to capture the image to be aligned. It is also used to compute the image scale.
0522                     </para>
0523                 </listitem>
0524                 <listitem>
0525                     <para>
0526                         <guilabel>Exposure</guilabel>: Exposure duration in seconds.
0527                     </para>
0528                 </listitem>
0529                 <listitem>
0530                     <para>
0531                         <guilabel>Bin</guilabel>: The binning of the image before solving.
0532                     </para>
0533                 </listitem>
0534                 <listitem>
0535                     <para>
0536                         <guilabel>Gain/ISO</guilabel>: The camera gain or ISO.
0537                     </para>
0538                 </listitem>
0539                 <listitem>
0540                     <para>
0541                         <guilabel>Filter/Use Current</guilabel>: The filter to use when capturing the image. <guilabel>Use Current</guilabel> uses whatever filter is currently active.
0542                     </para>
0543                 </listitem>
0544                 <listitem>
0545                     <para>
0546                         <guilabel>Dark</guilabel>: Whether to use the dark-image subtraction scheme before analyzing the captured image.
0547                     </para>
0548                 </listitem>
0549             </itemizedlist>
0550         </sect2>
0551 
0552         <sect2 id="ekos-align-polaralignment">
0553             <title>Polar Alignment</title>
0554                 <para>
0555                     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.
0556                 </para>
0557 
0558                 <mediaobject>
0559                     <videoobject>
0560                         <videodata contentdepth="595" contentwidth="800" fileref="https://www.stellarmate.com/images/videos/polar_align.webm"/>
0561                     </videoobject>
0562                     <caption>
0563                         <para>
0564                             <phrase>Polar Alignment Assistant</phrase>
0565                         </para>
0566                     </caption>
0567                 </mediaobject>
0568 
0569                 <para>
0570                     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.
0571                 </para>
0572                 <screenshot>
0573                     <screeninfo>
0574                         Polar Alignment
0575                     </screeninfo>
0576                     <mediaobject>
0577                         <imageobject>
0578                             <imagedata fileref="alignment_polaris.png" format="PNG"/>
0579                         </imageobject>
0580                         <textobject>
0581                             <phrase>Polar Alignment</phrase>
0582                         </textobject>
0583                     </mediaobject>
0584                 </screenshot>
0585                 <para>
0586                     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.
0587                 </para>
0588                 <para>
0589                     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.
0590                 </para>
0591                 <para>
0592                     Before starting the process, point the mount as close as possible to the celestial pole with the counterweights down. If you are living in the Northern Hemisphere, point it as close as possible to Polaris. If Polaris is not visible (&eg; blocked by trees or  buildings) you may point elsewhere, preferably near the Meridian. Make sure there is at least 30-60 degrees of sky viewable in an arc East or West of the Meridian from the position you choose. Select the direction of free sky, the number of degrees for each of two slews, the mount slew speed, and whether the mount will be slewing automatically (recommended) or manually.
0593                 </para>
0594                 <para>
0595                     The tool works by capturing and solving three images. After capturing each, the mount rotates by the fixed amount you entered and another image is captured and solved. If you choose manual, you will need to slew the mount by roughly the angle chosen.
0596                 </para>
0597                 <screenshot>
0598                     <screeninfo>
0599                         Polar Alignment Assistant
0600                     </screeninfo>
0601                     <mediaobject>
0602                         <imageobject>
0603                             <imagedata fileref="polar_assistant_main2.png" format="PNG"/>
0604                         </imageobject>
0605                         <textobject>
0606                             <phrase>Polar Alignment Assistant</phrase>
0607                         </textobject>
0608                     </mediaobject>
0609                 </screenshot>
0610 
0611             <sect3 id="ekos-align-platesolvecorrection">
0612                 <title>Plate Solve Correction Scheme</title>
0613                 
0614                 <para>
0615                   The images below show the workflow when the <emphasis>Plate Solve</emphasis> correction technique is used. The image below shows a display after the 3 measurement images are captured and solved. It shows an error of almost 18' in altitude and that the mount's axis needs to be moved up. Similarly it shows an azimuth error of almost 15' and that the axis needs to be moved to the right (as viewed from behind the telescope). 
0616                 </para>
0617                 <screenshot>
0618                     <screeninfo>
0619                         Polar Alignment Assistant
0620                     </screeninfo>
0621                     <mediaobject>
0622                         <imageobject>
0623                             <imagedata fileref="polar_assistant_ps1.png" format="PNG"/>
0624                         </imageobject>
0625                         <textobject>
0626                             <phrase>Polar Alignment Assistant, Plate Solve Workflow 1</phrase>
0627                         </textobject>
0628                     </mediaobject>
0629                 </screenshot>
0630                 <para>
0631                   If your error is low enough (&eg; less than an arc-minute) then you don't need to make any adjustments. Simply press stop and you're done.
0632                 </para>
0633                 <para>
0634                   If you will be making corrections to your mount's axis, you should select the adjustment approach (we're using Plate Solve in this example), and how often the system should recapture images to re-measure the polar alignment error. The refresh interval should be frequent, but it doesn't make sense to make it faster that your CPU can capture and plate-solve the images. We're using 2s in this example. Then press the <guibutton>Refresh</guibutton> button to begin the correction process.
0635                 </para>
0636                 <para>
0637                   The system will capture images, and re-estimate the polar alignment error after each image. You can try to reduce the error by adjusting the Altitude and Azimuth correction knobs on your mount. The image below shows the screen after the altitude error has been almost zeroed. See the difference between the  <emphasis>Measured Error</emphasis> row, which shows the originally measured error after the original 3 captures, and the  <emphasis>Updated Error</emphasis> row which shows the current error estimate.
0638                 </para>
0639                 <screenshot>
0640                     <screeninfo>
0641                         Polar Alignment Assistant
0642                     </screeninfo>
0643                     <mediaobject>
0644                         <imageobject>
0645                             <imagedata fileref="polar_assistant_ps2.png" format="PNG"/>
0646                         </imageobject>
0647                         <textobject>
0648                             <phrase>Polar Alignment Assistant, Plate Solve Workflow 2</phrase>
0649                         </textobject>
0650                     </mediaobject>
0651                 </screenshot>
0652                 <para>
0653                   Below the user has also adjust Azimuth to reduce the error further. Now the error is very low and the process is done. The user should press the stop button.
0654                 </para>
0655                 <screenshot>
0656                     <screeninfo>
0657                         Polar Alignment Assistant
0658                     </screeninfo>
0659                     <mediaobject>
0660                         <imageobject>
0661                             <imagedata fileref="polar_assistant_ps3.png" format="PNG"/>
0662                         </imageobject>
0663                         <textobject>
0664                             <phrase>Polar Alignment Assistant, Plate Solve Workflow 3</phrase>
0665                         </textobject>
0666                     </mediaobject>
0667                 </screenshot>
0668                 </sect3>
0669                 <sect3 id="ekos-align-move-star-correction">
0670                 <title>Move Star Correction Scheme</title>
0671 
0672                 <para>
0673                   We also have an alternative schemes for correcting polar alignment. Two variations are <emphasis>Move Star &amp; Calc Error</emphasis> and <emphasis>Move Star</emphasis>. When you select this scheme, the system place a yellow/green/violet triangle on the screen. The triangle can be moved by clicking near a star, and the yellow/violet corner is moved to that star. In this scheme the user corrects polar alignment by first adjusting the mount's azimuth knob so that the selected star moves along the yellow side of the triangle. Once the star is near the next vertex, the azimuth knob should be adjusted so that the star moves along the green side of the triangle. Once the star is moved to the green/violet vertex, the mount is polar aligned, and the user can click <emphasis>stop</emphasis>.
0674                 </para>
0675                   <para>
0676                     The difference between <emphasis>Move Star &amp; Calc Error</emphasis> and  <emphasis>Move Star</emphasis> is that in the former, the system attempts to track the star the user has selected, and places a circle around that star. In that scheme it also attempts to update the <emphasis>Updated Err</emphasis> row. If the star tracking isn't reliable, simply ignore it or use the <emphasis> Move Star </emphasis>scheme and move the star by-eye until it's close to the final target. An example of using this technique is shown in this video: 
0677                     <ulink url="https://www.youtube.com/watch?v=iOp7hrxw0oU">https://www.youtube.com/watch?v=iOp7hrxw0oU</ulink>
0678                 </para>
0679             </sect3>
0680         </sect2>
0681 </sect1>