Документ взят из кэша поисковой машины. Адрес оригинального документа : http://www.mso.anu.edu.au/pfrancis/ObsTech/computers.html
Дата изменения: Unknown
Дата индексирования: Tue Oct 2 04:05:47 2012
Кодировка:

Поисковые слова: comet
Observational Techniques: Computer Notes

Observational Techniques: Computer Notes


Aims

The aim of this section of the course is to enable you to use simple computer programs to solve a variety of common astronomical tasks. In particular, how to read in and print out ASCII (text) data files, how to do calculations, how to make plots, and how to interact with astronomical data in FITS format.

We could do all of this in a wide variety of programming languages. I have (somewhat arbitrarily) decided to use Python for this course, because it seems to be gaining popularity fast for astronomical data handling, and because some of you will have encountered it at the ATNF course. Once you're familiar with one programming language, others will come much more easily.

Notes on the relative merits of different programming languages

Running Python

The first step is to get Python up and running. We've put Python (plus all relevant libraries) on the Stromlo Linux computers moron and maggot. These should be enough for everyone doing this course to use.

To use these machines from a SunRay terminal, do the following:

You might prefer to run the rograms on your own laptop. Versions of Python run on Windows, Macs, Unix and LINUX (among others) so you should be able to install it just about anywhere.

In addition to python itself, to do this course you will need some extra packages:

One easy way to get all of these (along with much much more) is the SciSoft package put together by ESO: http://www.eso.org/science/scisoft/. Alternatively you can install them individually.

Learning to Program in Python If you've never programmed before, you should try out this tutorial:

Non-programmers tutorial

To start off with, you should work through sections up to and including "debugging". Note that you are using Python from the command line, not with IDLE.

If you have programmed before, start with a different tutorial:

Programmers Tutorial

To learn about plotting and interacting with astronomical data, try the following excellent tutorial:

Using Python as an Interactive Data Processing Language