Load.write_file#

pyPLUTO.Load.write_file(self, data: ndarray[tuple[Any, ...], dtype[_ScalarT]] | dict, filename: str, datatype: str | None = None, dataname: str | None = None, grid: bool = False, **kwargs: Any) None[source]#

Write the data to a file.

Parameters:
- data (not optional): NDArray | dict

the data to write to the file

- datatype: str

the type of the file

- dataname: str

the name of the data to write to the file

- filename (not optional): str

the name of the file

- grid: bool

if True, write the grid to the file

- **kwargs: Any

additional keyword arguments

—-
Returns:
  • None

Examples

  • Example #1: Write the data to a file

    >>> write_file("data.h5")