reader = open_topography("path/to/file.zag")
raise CannotDetectFileFormat(msg)
SurfaceTopography.Exceptions.CannotDetectFileFormat: tried XYZReader:
Could not parse file as XYZ.
tried AscReader:
'utf-8' codec can't decode byte 0xc0 in position 30: invalid start byte
tried DIReader:
Header line does not start with a slash.
tried MatReader:
Unknown mat file type, version 93, 94
tried OPDReader:
Error reading directory block. Header is 'K06@', expected 'Directory'
tried OPDxReader:
File magic does not match. This is not a Dektak OPDx file.
tried IBWReader:
invalid binary wave version: 20555
tried MIReader:
tried MitutoyoReader:
openpyxl does not support .zag file format, please check you can open it with Excel first. Supported formats are: .xlsx,.xlsm,.xltx,.xltm
tried PSReader:
This is not a TIFF file, so it cannot be a Park Systems TIFF.
tried ZONReader:
"There is no item named 'cbc1d39b-215f-4d56-a20e-cf8e5f570755' in the archive"
tried EZDReader:
not enough values to unpack (expected 2, got 1)
tried BCRReader:
This is not a BCR-STM/BCRF data file
tried MetroProReader:
File magic does not match. This is not a Zygo MetroPro file.
tried PLUReader:
Unknown string format: KPK06@BM6@6(ÀÄÄZZZNNNQQQ```^^^UUUQQQ^^^bbbVVVQQQWWWcccXXXSSSVVVhhhfffRRRRRR]]]^^^
tried FRTReader:
Structure entry `magic` has invalid value 'KPK06@BM6@' at file offset 0. The expected value is 'FRTM_GLIDERV'.
tried LEXTReader:
This is not a TIFF file, so it cannot be an Olympus LEXT file.
tried OIRReader:
Structure entry `magic` has invalid value 'KPK06@BM6@' at file offset 0. The expected value is 'OLYMPUSRAWFORMAT'.
tried POIRReader:
Structure entry `magic` has invalid value 'KPK16BM6' at file offset 0. The expected value is 'OLYMPUSRAWFORMAT'.
tried WSXMReader:
This is not a WSxM file, because the first line does not start with 'WSxM file copyright'.
tried PLUXReader:
"There is no item named 'index.xml' in the archive"
tried JPKReader:
This is not a TIFF file, so it cannot be a JPK file.
tried MNTReader:
Not an OLE compound document
tried NMMReader:
Could not identify file prefix.
tried NMSReader:
Grid dimensions too large for NMS file
tried HGTReader:
File physical_sizes of 597723067 bytes does not match file physical_sizes for a map of dimension 17287x17287.
reader = open_topography("path/to/file.zag",format="Zag")
Traceback (most recent call last):
File "<python-input-3>", line 1, in <module>
reader = open_topography("path/to/file.zag",format="Zag")
File "/Users/User/miniconda3/lib/python3.14/site-packages/SurfaceTopography/IO/__init__.py", line 353, in open_topography
raise UnknownFileFormat(
f"{format} not in registered file formats {lookup_reader_by_format.keys()}.")
SurfaceTopography.Exceptions.UnknownFileFormat: Zag not in registered file formats dict_keys(['sdf', 'xyz', 'asc', 'di', 'mat', 'opd', 'opdx', 'x3p', 'ibw', 'mi', 'mitutoyo', 'nc', 'datx', 'h5', 'npy', 'ps', 'sur', 'tmd', 'vk', 'zmg', 'zon', 'os3d', 'al3d', 'ezd', 'bcr', 'metropro', 'gwy', 'plu', 'frt', 'lext', 'oir', 'poir', 'wsxm', 'plux', 'jpk', 'mnt', 'nmm', 'nms', 'hgt']).
I have a
.zagfile, and the Surface Topography module attempts (and fails) to read it.I ran:
and received the output error:
Is
.zagno longer supported?I also ran: