Resources for Science Olympiad Astronomy
Go to file
2022-01-22 22:02:56 -06:00
Astro 2019 Add documents to LFS 2022-01-22 20:51:17 -06:00
Astro 2021 Add pdfs to LFS 2022-01-22 20:46:44 -06:00
astropy@a643a37a33 Update astropy 2022-01-22 20:52:29 -06:00
DSOs Add pdfs to LFS 2022-01-22 20:46:44 -06:00
General Add pdfs to LFS 2022-01-22 20:46:44 -06:00
Links Catch find_date exceptions 2021-11-24 21:26:07 -06:00
Stars Add pdfs to LFS 2022-01-22 20:46:44 -06:00
.gitattributes Add documents to LFS 2022-01-22 20:51:17 -06:00
.gitignore Add documents to LFS 2022-01-22 20:51:17 -06:00
.gitmodules Add submodule 2021-04-30 20:20:11 -05:00
LICENSE Use a strong reciprocal license instead 2021-10-03 19:12:39 -05:00
mkbinder.py Remove date checking functionality from mkbinder.py 2022-01-22 21:59:32 -06:00
packages.txt Remove rclone from packages.txt 2022-01-22 20:52:50 -06:00
README.md Clean up mkbinder.py documentation in the README 2022-01-22 21:01:56 -06:00
requirements.txt Remove unused dependencies from requirements.txt 2022-01-22 22:02:56 -06:00

Astronomy

Resources for Science Olympiad Astronomy. Note that due to the license, you must publicly release any code that you use from this repository.

Usage

Install dependencies

You can install all the required dependencies on Arch Linux with cat packages.txt | xargs sudo pacman -S --asdeps --noconfirm. For other Linux distros, install your distro's version of the packages in packages.txt.

Kiwix

Download all of Wikipedia, or if you are low on disk space, Wikipedia Astronomy.

Speedcrunch

Great for unit conversions: https://speedcrunch.org/userguide/advanced.html

Astropy

First, clone the submodule with git submodule init && git submodule update --remote. Then build the documentation.

Download web pages

mkbinder.py is a Python script to download web pages. It can detect if the latest version of a website is newer than the downloaded version and download only the web pages that need to be updated.

First, install dependencies with pip install -r requirements.txt. Add links to download to text files in the Links folder. The links in each text file will be downloaded to their own folder.

Now run python mkbinder.py. It may take a while, depending on how many links to download.

You can change the backend used to download the websites, but the default backend pdfkit tends to work the best and is recommended. There is an alternative backend weasyprint which may work better in some cases and does not require wkhtmltopdf. Only change the backend if you are having trouble with the default and you know what you are doing!