SkyviewBot: base repo to go alongside "Good Coding Practice" (ASTERICS-OBELICS 2019).
See also GCP talk slides: https://drive.google.com/open?id=1vdV290w_2hsvVmsoXKdgTo1hQuGxMhlU
The main goal of this repository is to introduce three primary concepts in good coding practices: 1) argument parsing, 2) modularisation, and 3) docstrings. The code will "run" as it is (once the setup is done), but there are many ways to improve on what it does with better structure and more customised options.
The overall flow:
- Download a FITS cutout from any of the 100+ Skyview surveys (or use pre-existing FITS)
- Use APLpy to make an image of the FITS file with custom settings
- Upload the resulting image to Google Drive using PyDrive wrapper around REST API
- Attach the web-ready image to a Slack post and send to the #gcp channel
The best image post will win a box of world-famous Dutch stroopwafels.
Things you need to do to get this running:
git pull origin masterin School 2019,
conda env update -f environment.yml(from T. Dijkema)
- Preferred: fork this repository, then
git cloneyour version so you can push changes back
git clone https://github.com/cosmicpudding/skyviewbot.gitto a sensible location
skyview.jarto the main code folder (or change the path in
- When first running code: authenticate using firstname.lastname@example.org login details for Google Drive API
- Join the #gcp channel on http://obelics-school.slack.com (GCP = Good Coding Practices)
If you get stuck
- ask your neighbour
- ask a tutor
@vamosson http://obelics-school.slack.com (
#gcpchannel or DM)