model.HydrostaticEquilibrium.write_model_to_ascii#

HydrostaticEquilibrium.write_model_to_ascii(output_filename, in_cgs=False, overwrite=False)#

Write the equilibrium model to an ascii text file. Uses AstroPy’s QTable to write the file, so that units are included.

Parameters:
  • output_filename (str) – The file to write the model to.

  • in_cgs (bool, optional) – Whether to convert the units to cgs before writing. Default: False.

  • overwrite (bool, optional) – Overwrite an existing file with the same name. Default: False.