LSST Tutorials

This page consists of tutorials for people getting started with the LSST project and software.

First you need to get a physics department computer account.  Use your physics department account and login (using  ‘ssh -Y’) to cosmology-01.

If you don’t know how to use unix at all then I suggest you start by looking at the book “Effective Computation in Physics”.

http://shop.oreilly.com/product/0636920033424.do

There is a copy in the student office and will give you instructions on how to get started.  Also, ask other students for help.  Make sure you can login, list files in your directory, edit a file etc.  When you to do basic operations you are ready to get started.  Alternatively, you can find many resources on line to introduce you to Unix.

You could also look at the beginning of the Super-K tutorials:

Step 0: Computer Setup

Follow the instructions up-to the part on setting the login script.
The instruction below are for the tcsh shell so type ’tcsh’ if you haven’t made that your default shell already.   Then you can type:
setenv PROJECT /var/phy/project/lsst
source ${PROJECT}/LSST-Duke.login

and this will setup the the LSST software for you.  First we will learn a bit about the program “ds9”.  It is an astronomical display program.  After doing this setup you can run it by just typing  ‘ds9’

You can play with ds9 a bit using this tutorial:

http://astrobites.com/2011/03/09/how-to-use-sao-ds9-to-examine-astronomical-images

BTW that astrobites site is astronomy for undergrads written by graduate students.  There is a lot of good articles there; start reading it! Or consider writing for it!
To start, do the tutorial and make a  presentation explaining what you did for Friday group meeting. Try to follow the instructions in the ds9 tutorial and show us the steps to get to the last plots in your presentation. The links to the files (the FITS) files no longer work.  But, you can go here to get them:

http://mirror.sdss3.org/fields/name?name=M104
Then here is a tutorial you can play with on FITS files.  This will use ipython to look at data in an image.  You should know how to start a iPython or Jupyter notebook from your physics classes already.  If not ask one of the other LSST people.

http://www.astropy.org/astropy-tutorials/FITS-images.html
Go ahead and do this.  Some of the other astropy ones are good too. Play with these to get used to using the tools.
None of this is specific to LSST.  One thing people here have been working on is a program called GalSim.
This is a program to make quick pictures of galaxies and stars.

To use it logon to cosmology-01 and then (like before if you have logged out):
setenv PROJECT /var/phy/project/lsst
source ${PROJECT}/LSST-Duke.login
Then type:
setup galsim
Then, copy this directory:

/var/phy/project/lsst/GalSim-1.3.2/examples

somewhere into your area. If you did things correctly you can go into the directory and type:
python demo1.py
 It will run and then put a ‘fits’ file in the ‘output’ directory that you can look at with ds9.  If that worked you are ready to start.

I would like you to read and try to understand demo1.py.  You could play with it by writing your own program to understand it, or make a ipython notebook or something.   Once you have done this I would like you to run and understand in the same way if you can demo2.py, demo3.py and demo5.py.

You might need to look things up or ask questions to understand some of the things. Don’t be shy about asking.

Then, if you have done all of those I would like you try something which will put together all of the knowledge that you have learned so far.  It might be some work to figure it out. But, when you finish you will know how to use the program.

I would like you to try to make a simple version of this:
There is enough information in the text to figure out how to make this.  But one thing: there is no easy way to make a galaxy on its “edge” so just make galaxies from the front with about the correct size and make them the proper distance apart.