write_pha

sherpa.astro.io.write_pha(filename, dataset, ascii=True, clobber=False)[source] [edit on github]

Write out a PHA dataset.

Parameters:
  • filename (str) – The name of the file.
  • dataset – The data to write out.
  • ascii (bool, optional) – If True use an ASCII format, otherwise a binary format.
  • clobber (bool, optional) – If True then the output file will be over-written if it already exists, otherwise an error is raised.

See also

read_pha()