import_cyl

Create a cylindrical .pf file from a windsave2table file.

Read the master file produced by windsave2table for a model created in cylindrical coordinates and produce a file which can be imported into Sirocco and run

Command line usage (if any):

import_cyl.py rootname where rootname is the rootname of the mastertable or windsave file

Description:

This operates on the mastertable produced by windsavetable

Primary routines:

doit

Notes

Windsave2table saves the values of rho in the CMF frame, but Sirocco expects models to be in the observer frame so this routine corrects for this.

Functions

doit([root, outputfile])

Read a master.txt file for models in cylindrical coordinates and produce a file which can be read in to python

read_file(filename[, char])

Read a file and split it into words, eliminating comments

read_table([filename, format])

Read a file using astropy.io.ascii and return this