-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathget_data.sh
executable file
·34 lines (28 loc) · 1.33 KB
/
get_data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
###########################################################################
# Download star data from Yale Bright Stars Catalog and Hipparcos Catalog #
# Yale: http://tdc-www.harvard.edu/catalogs/bsc5.html #
# Hipparcos: https://heasarc.gsfc.nasa.gov/W3Browse/all/hipparcos.html #
# Open Source BSC: https://github.com/johanley/star-catalog/ #
###########################################################################
# TODO: make a simple rust cli to replace this script
mkdir -p data/{Hipparcos,Yale,OSBSC}
(
cd data/Hipparcos
wget -cv 'https://cdsarc.cds.unistra.fr/ftp/cats/I/239/hip_main.dat'
wget -cv 'https://cdsarc.cds.unistra.fr/ftp/cats/I/239/ReadMe'
)
(
cd data/Yale
wget -cv 'http://tdc-www.harvard.edu/catalogs/bsc5.dat.gz'
wget -cv 'http://tdc-www.harvard.edu/catalogs/bsc5.readme'
wget -cv 'http://tdc-www.harvard.edu/catalogs/bsc5.notes.gz'
gunzip bsc5.dat.gz
gunzip bsc5.notes.gz
)
(
cd data/OSBSC
wget -cv 'https://github.com/johanley/star-catalog/raw/master/catalogs/output/open-source-bsc/ReadMe.utf8'
wget -cv 'https://github.com/johanley/star-catalog/raw/master/catalogs/output/open-source-bsc/os-bright-star-catalog-hip.utf8'
wget -cv 'https://github.com/johanley/constellation-lines/raw/master/output/constellation-lines-hip.utf8'
)