Created
December 5, 2019 02:29
-
-
Save sequoiap/29a5eebf66bfce7049b415d182f4749b to your computer and use it in GitHub Desktop.
Gets the RA and DEC from a star image using astrometry.net without creating other files except the output.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin bash | |
# Using python to get the RA, DEC from a wcs file: https://groups.google.com/d/msg/astrometry/0ICnBUecOx8/S1to9wayBQAJ | |
# Physical meaning of "Field rotation angle": https://groups.google.com/d/msg/astrometry/KEPzYd7fHis/hGDGMUwMBgAJ | |
# Possible program flaw of rotation near poles: https://groups.google.com/d/msg/astrometry/Uicir_i1E_o/nJsjjDeEBwAJ | |
solve-field \ | |
--no-plots \ | |
--no-verify \ | |
--resort \ | |
--corr none \ | |
--solved none \ | |
--match none \ | |
--rdls none \ | |
--index-xyls none \ | |
--new-fits none \ | |
--temp-axy \ | |
--crpix-center \ | |
-O \ | |
--depth 30,40 \ | |
"$1" > out.txt | |
# 26_07_-_20_27_08_image8_900.jpg | |
# python -c "from astrometry.util.util import Sip; wcs=Sip('26_07_-_20_27_08_image8_900.wcs'); print wcs.radec_center()" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To time this script on your system, simply execute this script as follows:
time bash solve.sh <image-filename>