Skip to content

Instructions for getting started with python and git

License

Notifications You must be signed in to change notification settings

UTAustinAST376Spring2020/GettingStarted

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

GettingStarted

Instructions for getting started with Python, Git/GitHub, and LaTeX.

Python

Python is the programing language we will be using in this class to process our data and create plots. It is open source (free) and has a large user base making most problems solvable with a simple google or https://stackoverflow.com search. There has been a significant effort over the past few years to develop a central open source package for astronomy called astropy which we will be using extensively.

Installing Python

This is easiest on Linux/MacOS but can be done on Windows as well. If you are on Windows, the following instructions should work but you may find some useful information here: https://medium.com/@GalarnykMichael/install-python-on-windows-anaconda-c63c7c3d1444

Download the Python 3.6 (NOT 2.7) anaconda installer here: https://www.anaconda.com/download/

Run the installer (this may take a while)

Install a few useful packages which are not included by default by running the following lines in the terminal

conda install -c astropy aplpy astroplan astroquery ccdproc photutils specutils
pip instal emcee

Python Tutorials

Code from astronomical Python tutorials developed here at UT Austin as well as links to online tutorials can be found in the PythonTutorials repository.

Useful Python documentation links

Astropy:

APLPy

astroplan

astroquery

ccdproc

photutils

specutils

emcee

git and GitHub

Git is a version control tool; it helps you keep track of changes you make to your code. This allows you to roll back changes you have made if you break your code. GitHub is a website which interfaces with git to provide cloud hosted repositories. This allows multiple people to work on a project at the same time and provides a platform to share or publish your code. GitHub also provides other tools such as webpages, wikis, and issue trackers.

We will be using GitHub to turn in the code associated with each of your projects. You will be given a link in each of the assignments which will set up a private repository for you to use. This will require a GitHub account which you should have set up already. (If not click the "sign up" button at the top of this page!)

As stated in the quiz, the code associated with your projects can simply be uploaded to GitHub without interacting with git via the command line. Therefore you do not need to run git on the command line. That being said, it is a very useful and powerful tool worth learning and getting familiar with.

Installing Git

Git is installed on the Linux/MacOS command line by default so you don't have to do any installation! If you are running Windows you can follow the instructions here: https://hackernoon.com/install-git-on-windows-9acf2a1944f0 (It is as simple as downloading and running an installer)

Alternatively you can download a GUI application for MacOS or Windows here: https://desktop.github.com

Some further configuration can be done to streamline your workflow such as saving your GitHub username, email, and password:

Git/GitHub Resources, Tutorials, and cheat sheets

LaTeX

The easiest way to use the LaTeX document preparation software package is via https://www.overleaf.com. The AASTeX Template which you will be required to format your project reports in can be found here: https://www.overleaf.com/latex/templates/aastex-template-for-submissions-to-the-astrophysical-journal/bpkjwktvsqwp#.W3MmOC3MwkU

If you would like to run LaTeX on your personal computer you will need to install LaTeX (warning: it is VERY large) and the AASTeX style sheets. Instructions and installers for Linux/MacOS/Windows can be found here: https://www.latex-project.org/get/ Then follow the instructions to install AASTeX here: https://journals.aas.org/authors/aastex.html#_download That page also has links to guides on specific AASTeX commands and conventions.

About

Instructions for getting started with python and git

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published