Reading and Writing filesΒΆ

In this workshop we will learn how to get data in and out of Python using solely built-in Python functions and types, and we will then move on to see how we can use modules such as asciitable and ATpy to read tables of data in various formats. But before getting to file I/O we’ll start filling in your basic Python knowledge with a primer on Python data types.

Pure Python primer

Authors:Tom Robitaille, Tom Aldcroft, Moritz Guenther
Copyright:2011 Smithsonian Astrophysical Observatory