PHYS-4007/5007 Course Project #1 Web Home Page

This web page contains the links of the various files needed to complete the course Project #1 for PHYS-4007/5007 Computational Physics. Most of the files here are in standard ASCII (text) format, though some are binary (the PDF files) -- all should be downloaded by double clicking on the link. Depending on your browser, you will either see a "Download" box when you double click on the ASCII (i.e., LaTeX, or IDL) files, or the text will appear in your browser. In this second case, just highlight the "Save As" menu item under the "File" menu item on the browser's toolbar. The other files that can be downloaded are PDF (Portable Document Format) (which requires Acrobat Reader to view).


Course Project Overview

Your Computer Class Project will involve writing an IDL computer code dealing with data fitting and analysis. This web site has been set up to assist you in this project. It contains spectra of a set of galaxies (in ASCII format with files ending in ".txt"), a bare-bones IDL procedure that you can use as a starting point, some supplemental IDL procedures, the spectral data files, a reference paper concerning the spectra, and sample LaTeX files to assist you in writing your manuscript for this project. For this project, you will be determining Hubble's Constant, Ho, which is used in Hubble's Law:

vr = Ho d,
where vr is the radial velocity (in km/s) of the galaxy in question and d is the distance to the galaxy (in Mpc = 106 parsecs). Note that the "parsec" is a unit of distance used in astronomy and is equal tp 3.26 light years -- an astronomical object that displays a yearly parallax shift of one arcsecond would be at a distance of one parsec as per the equation
d = 1/p,
where d is the distance measured in parsecs and p is the parallax angle measured in arcseconds (though you will not need this parallax equation for this project).

The Computer Project #1 Instruction Packet (which can be downloaded below) contains a short description of Hubble's Law, information on what you need to figure out in your program, the techniques and IDL functions and procedures you may need, and an outline on how you should format your manuscript. Those of you taking this course for honors or graduate credit will be expected to carry out additional analysis as will be described in the Instruction Packet.

Your code must be capable of producing plots to both the terminal and to a hardcopy file such as postscript or bitmap (IDL is capable of producing both kinds of output). Note that you do not need to include GUI software for this project, a simple IDL plot window will be good enough.

In summary, you will need to write an IDL procedure (or multiple procedures and functions) that carried out the steps described in the Instruction Packet in figuring out Hubble's constant. I have included a "driver" procedure (see the link hubble.pro below) that will help you design the software to carry out this project. Once again, honors and graduate students note the additional "honors and graduate only" sections listed in the Instruction Packet.


Files to Download

A full description of the project is given in the compproj1 files. The ".tex" file contains the LaTeX file of the write-up for this project, which has been compiled into the output ".pdf" (PDF) file. A sample LaTeX file (template.tex) can be downloaded and used as a template for your project's manuscript (the printable output files are stored in the associated PDF files). This LaTeX file requires either the temptex.eps figure file (if compiling in Unix) or the temptex.bmp image file (if compiling with PCTeX in Microsoft Windows) to be downloaded too. The template.pdf file contain the compiled versions of this LaTeX file. Download the following files to a subdirectory where you wish to carry out this project (i.e. the so-called working directory). Double click on each of the files listed.

Note that the IDL procedure is written under IDL Version 4.0. It has been tested under Version 5.6 (which is on the Linux workstation) and Version 5.2 (which is on the PCs in BH 264) and work fine in these environments. Should you be using any version of IDL earlier than V5.2, you will need to contact me for copies of the "DIALOG" procedures which were added to IDL in Version 5.2. I have V4.0 versions of these functions.

LaTeX Files and Their Output PDF Files

compproj1.tex compproj1.pdf Project #1 Instruction Packet Write-Up
template.tex template.pdf Sample Manuscript LaTeX File
temptex.eps temptex.bmp Figure (in 2 different formats) for template.tex

Professional Journal Article From Which The Spectral Data Was Obtained

1995ApJS_97_331M.pdf McQuade, Calzetti, & Kinney 1995, ApJS, 97, 331
apj2000.536.923.pdf One of my papers as an example in writing scientific papers

Programming Files

IMPORTANT NOTE: Due to OIT's paranoia about security issues, files ending in either ".dat" (standard Unix data files) and ".pro" (IDL procedure and function files) will not show up on a web browser even though those files exist on the web server disk. To counteract this, I have changed the name of all ".dat" files to ".txt" files and renamed all of the IDL procedures for you to download to ".txt" file names. Note that after you download a given IDL procedure or function file from this web site to your IDL working directory on your PC, immediately rename it to its ".pro" name as shown on web page link. For instance, when you click on "workdir.pro", this will save this file to your IDL working directory as "workdir.txt". Once on your home machine, rename it to "workdir.pro".

workdir.pro IDL procedure to select working directory on PCs
sampleplot.pro IDL procedure to generate plots
hubble.pro Template IDL procedure for this project
mkproj1figs.pro Sample IDL procedure that made figures for the compproj1.tex
galflscale.pro Determine the flux scale factor for plots
spectype.pro IDL/GUI procedure to enter spectrum type
rdgaldist.pro IDL procedure to read galdist.dat data file

Distance and Spectrum Data Files

galdist.txt Galaxy distances data file
ngc224.txt ngc224 spectrum file
ngc262.txt ngc262 spectrum file
ngc598.txt ngc598 spectrum file
ngc1023.txt ngc1023 spectrum file
ngc1068.txt ngc1068 spectrum file
ngc1569.txt ngc1569 spectrum file
ngc1614.txt ngc1614 spectrum file
ngc1667.txt ngc1667 spectrum file
ngc2403.txt ngc2403 spectrum file
ngc3031.txt ngc3031 spectrum file
ngc3077.txt ngc3077 spectrum file
ngc4194.txt ngc4194 spectrum file
ngc4853.txt ngc4853 spectrum file
ngc4861.txt ngc4861 spectrum file
ngc5728.txt ngc5728 spectrum file
ngc5860.txt ngc5860 spectrum file
ngc5996.txt ngc5996 spectrum file
ngc6052.txt ngc6052 spectrum file
ngc6090.txt ngc6090 spectrum file
ngc6217.txt ngc6217 spectrum file
ngc6764.txt ngc6764 spectrum file
ngc7250.txt ngc7250 spectrum file
ngc7673.txt ngc7673 spectrum file
ngc7714.txt ngc7714 spectrum file
ugca410.txt ugca410 spectrum file
ugc9560.txt ugc9560 spectrum file
mrk66.txt mrk66 spectrum file
mrk309.txt mrk309 spectrum file
mrk357.txt mrk357 spectrum file
mrk477.txt mrk477 spectrum file
mrk499.txt mrk499 spectrum file
mrk542.txt mrk542 spectrum file
ic214.txt ic214 spectrum file
ic1586.txt ic1586 spectrum file


Click here to go back to the Computational Physics home page.
Click here to go to Dr. Luttermoser's current courses page.
Click here to go to the Department of Physics, Astronomy & Geology homepage.


Last modified: September 9, 2008 by D.G. Luttermoser