2020-07-25 12:13:42 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
# Get truncated Hipparcos catalog for testing
|
|
|
|
|
# Truncate the Hipparcos catalog to stars with magnitude brighter than 6.6
|
|
|
|
|
# corresponds to last line of
|
|
|
|
|
# https://github.com/skyfielders/python-skyfield/blob/master/builders/Makefile
|
2021-02-28 23:01:17 +00:00
|
|
|
# but with an SSL secured URL for the source (boo#1182424)
|
2023-01-21 11:34:10 +00:00
|
|
|
URL="https://cdsarc.cds.unistra.fr/ftp/I/239/hip_main.dat"
|
2021-02-28 23:01:17 +00:00
|
|
|
curl "$URL" | awk -F\| '$6 <= 6.6 || $2 == 87937' | gzip -c -9 > hip_main.dat.gz
|