write_grid¶
-
hcipy.util.
write_grid
(grid, filename, fmt=None, overwrite=True)¶ Write a grid to a file.
- Parameters
- gridGrid
The grid to write to the file.
- filenamestring
The path of the file you want to write to.
- fmtstring
The file format. If it is not given, the file format will be guessed based on the file extension.
- overwriteboolean
Whether to overwrite the file, if it already exists.
- Raises
- NotImplementedError
If the file format was not yet implemented.