File formats and codecs#
This section is for reader and writer implementers. To save a Python acquisition, use Save and share your data; no codec selection is needed.
QEM: portable measurements and metadata#
Read the specification in this order:
Question |
Authoritative page |
|---|---|
What does the file contain, and what must round-trip? |
|
How are integer counts and float bits encoded? |
|
Which vendor fields are interpreted or retained? |
|
How do independent readers prove correctness? |
|
How does a qualified DM4 acquisition map to QEM? |
Container, metadata-schema, and codec versions identify different parts of the file contract. Follow the identifiers declared in the file; a newer prose specification does not imply that every backend supports every layout.
Runtime storage and prepared formats#
A device’s resident representation and a portable acquisition file serve different purposes. Python acquisition loading uses ANS; internal layouts and prepared formats have their own callers and acceptance boundaries.
Implementation task |
Contract |
|---|---|
Understand encoded, paired, and dense layouts |
|
Implement the Swift/Metal prepared packed-file layout |
|
Produce that format from a native application |
|
Maintain the internal count-ANS container |
|
Maintain paired resident counts |
The prepared packed format is read only by the native Swift/Metal loader;
io.load does not open it. Use the original measurements to export a supported
QEM file. Dated codec experiments remain in Historical records.