read_field¶
-
hcipy.util.
read_field
(filename, fmt=None)¶ Read a field from a file.
- Parameters
- filenamestring
The path of the file you want to read the field from.
- fmtstring
The file format. If it is not given, the file format will be guessed from the file extension.
- Returns
- Field
The read field.
- Raises
- ValueError
If the file format could not be guessed from the file extension.
- NotImplementedError
If the file format was not yet implemented.