write_field¶
-
hcipy.util.
write_field
(field, filename, fmt=None, overwrite=True)¶ Write a field to a file.
- Parameters
- fieldField
The field 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.