STARS

Functions for loading output from the Cambridge STARS code.

tomso.stars.load_out(filename)[source]

Reads a STARS out file and returns (part of) the summaries and profiles in two structured arrays.

Parameters:

filename (str) – Filename of the STARS output file to load.

Returns:

  • summaries (2-d structured array) – Summaries of each model in the run, similar to MESA’s history files.

  • profiles (3-d structured array) – Model profiles produced at regular intervals during the run. The first index of the array is the profile number.

tomso.stars.load_plot(filename)[source]

Reads a STARS plot file into a structured array.

Parameters:

filename (str) – Filename of the STARS plot file to load.

Returns:

plot – Data for evolutionary track, with one row per model along the track. e.g. age, effective temperature, etc.

Return type:

2-d structured array