model.HydrostaticEquilibrium.write_model_to_binary#

HydrostaticEquilibrium.write_model_to_binary(output_filename, fields_to_write=None, in_cgs=False, r_min=None, r_max=None, overwrite=False)#

Write the model to unformatted Fortran binary.

Attention

But why would you want Fortran binary??

Warning

This procedure will lose all of the metadata from the self.gravity attribute and the self.attrs dictionary. As such, this should only be used in cases where the user can specify those properties manually upon reopening the file.

Parameters:
  • output_filename (str) – The output filename.

  • fields_to_write (list) – The list of field names to write.

  • in_cgs (bool) – If True, will write in cgs.

  • r_min (float) – The minimum radius

  • r_max (float) – The maximum radius

  • overwrite (bool) – True will overwrite any existing file with the same path.

Return type:

None