Add tyc2.fits catalogue
Signed-off-by: Pierros Papadeas <pierros@papadeas.gr>pull/35/head
parent
d8a1896f40
commit
66398416a6
|
@ -10,7 +10,6 @@ observer_el = 100 # Elevation of location in meters
|
|||
observations_path = /path/to/obs/ # Path for raw acquisitions
|
||||
tle_path = /path/to/tle/ # Path where TLEs are stored (and updated)
|
||||
results_path = /path/to/results # Path for results of processed obs
|
||||
tyc2_path = ./tyc2.fits # Path to Tycho 2 catalogue
|
||||
|
||||
[Credentials]
|
||||
st-username = username # Space-track.org username
|
||||
|
|
Binary file not shown.
|
@ -6,7 +6,6 @@ import numpy as np
|
|||
import subprocess
|
||||
import shutil
|
||||
import astropy.units as u
|
||||
import configparser
|
||||
from astropy.io import fits
|
||||
from astropy import wcs
|
||||
from astropy.coordinates import SkyCoord, FK5, ICRS
|
||||
|
@ -14,14 +13,13 @@ from astropy.time import Time
|
|||
from scipy import optimize
|
||||
from stvid.stars import pixel_catalog
|
||||
|
||||
|
||||
# Class for the Tycho 2 catalog
|
||||
class tycho2_catalog:
|
||||
"""Tycho2 catalog"""
|
||||
|
||||
def __init__(self, maxmag=9.0):
|
||||
cfg = configparser.ConfigParser(inline_comment_prefixes=('#', ';'))
|
||||
cfg.read('../configuration.ini')
|
||||
tyc2 = cfg.get('Common', 'tyc2_path')
|
||||
tyc2 = os.path.join(os.path.dirname(__file__), '../data/tyc2.fits')
|
||||
hdu = fits.open(tyc2)
|
||||
|
||||
ra = hdu[1].data.field('RA')*u.deg
|
||||
|
|
Loading…
Reference in New Issue