Data formats
MRC grid sample map
Map an MRC sample’s column, row and section to bytes and cell coordinates.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Use MAPC/MAPR/MAPS to map file axes to X/Y/Z. Compute the linear byte offset and use cell lengths, angles and sampling to form Cartesian coordinates under the selected origin convention.
The sample maps file column 1 to Y and row 0 to X. Its data value is at byte 1028; start-based X/Y/Z indices are 20,11,0.
Limits
At least a 1024-byte header; up to 1 MB of pasted bytes. Larger local MRC files load only the header. Real scalar modes 0,1,2,6,12 only. Complete sample bytes are optional. ORIGIN and starts conventions differ across software, so selection is explicit. No axis handedness, reconstruction orientation, density validity or medical interpretation is inferred.