hnsky_b.gif www.hnsky.org

For the new Win10 64 bit Creators edition Microsoft provides an app which will install a Linux sub-system capable of running Linux command-line programs.

It is possible to run the Astronomy.net plate-solve package in this Linux subsystem. The advantage is a pretty new Astrometry.net version,  currently at v0.67. Windows programs as Astrotortilla and ANSVR install an older  v0.38 version of 2010 compiled for Cygwin. The slightly different command-line is not yet supported by several software packages. ASTAP supports it. Other program could use my little interface program see describtion below or you could simple use the Windows command-line.  

Furthermore the Creators edition has problems with AMD graphic cards. I had trouble in getting my old working driver back. So be warned.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

# Installation guideline (2017-12-16) local version of Astrometry.net v0.67 in a Linux sub system of Win10 64 bit, Creators edition.

# With the Win10-Creators edition, it possible to install Windows subsystem for Linux:
#
https://docs.microsoft.com/en-us/windows/wsl/install-win10
# Install the Ubuntu installer (OpenSuse and Sles are also available) as indicated in above webpage.

# open the Ubuntu window or open a Windows cmd window and enter bash.
# execute the following Linux commands (the update is required to allow astrometry.net to be installled):
sudo apt udate
sudo apt install astrometry.net

# Download the index files up to 10% of your image scale, so up to 22 arcmin (-08-19, -07) or 16 arc min (
-08-19, -07, -06)
sudo apt install astrometry.net astrometry-data-2mass-08-19
sudo apt install astrometry.net astrometry-data-2mass-07
sudo apt install astrometry.net astrometry-data-2mass-06
# Check if the index files (index....fits) are available by entering the Linux command:
dir /usr/share/astrometry

# test the solver using a fits file on the Windows system .e.g. image at c:\astap.fpc\_M95_test_image.fit
# Open a Windows cmd window and enter:
C:\Windows\System32\bash.exe -c "solve-field /mnt/c/astap.fpc/_M95_test_image.fit --overwrite --downsample 4"

or 

bash -c "solve-field /mnt/c/astap.fpc/_M95_test_image.fit --overwrite --downsample 4"

---------------------------------------------------------------------------------------------------------------------

Additional information:
# Note that your Linux home folder is at something like: C:\Users\H\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\home
# where "H" is the Windows user name.
# Case is important in the Linux command. Drive C: is lowercase /mnt/c

# Alternatively you can also download the index files in Windows and place them in the Windows system (c:\temp\astrometry)
# Copy the index files to Ubuntu subsystem (/usr/share/astrometry) by entering the Linux command:
sudo cp /mnt/c/temp/astrometry/*.*  /usr/share/astrometry
# The directory /usr/share/astrometry, is specified in /etc/astrometry.cfg but can be altered

# To download the data files for markup of the produced png files do in the Linux subsystem:
cd /usr/share/astrometry
sudo wget
https://github.com/dstndstn/astrometry.net/raw/master/catalogs/ngc2000names.dat/ngc2000names.dat
sudo wget
https://github.com/dstndstn/astrometry.net/raw/master/catalogs/ngc2000names.dat/ngc2000_pos.txt
sudo wget
https://github.com/dstndstn/astrometry.net/raw/master/catalogs/ngc2000names.dat/ngc2000.dat
sudo wget
https://github.com/dstndstn/astrometry.net/raw/master/catalogs/ngc2000names.dat/ngc2000-readme.txt
sudo wget
https://github.com/dstndstn/astrometry.net/raw/master/catalogs/ngc2000names.dat/ic2000_pos.txt



Interface program
:

I made a little interface program bash.exe. It will accept a command line from any program executing the Cygwin bash.exe and execute the c:\windows\system32\bash.exe with the converted command line. Any command -line not containing solve-field with executed without modification.

Simplest solution is to replace the existing Cygwin bash.exe (keep a copy of the old bash.exe).
Alternatively you could install it in an other directory if your are capable of setting the path to the Cygwin Bash.exe . If you place it in \astrometry\bin, you most likely have to enter \astrometry in your program.
It will write a log file bash_replacement_log.txt with the command input and output for debugging at the place of program execution.

So the Win10 Linux subsystem installed solver can work as a replacement for the Cygwin solver.

I have tested it with CCDciel only. This will not work for ANSVR & SGP

Use it at your own risk. It contains a compiled executable and FPC source.:

win10_bash_interface.zip




















Back to the ASTAP program
Back to the HNSKY software page.