examples

[IUCr Home Page] [CIF Home Page] [CBFlib] [CBF/imgCIF]
CBF/ImgCIF

Examples


The following are examples of CBF and imgCIF files prodiced by CBFlib. All of these files were produced from the same MAR image file example.mar2300 (3.6 MB) provided by Paul Ellis. Thanks to Bob Sweet at BNL for providing the computer access and disk space to store earlier versions of these examples.

The first example, makecbf.cbf.gz (3.7 MB), is a compressed copy of a CBF produced by Paul Ellis's test program makecbf. (The compression is just to help ensure binary transmission on the web; the compressed file is approximately the same size as the original.) The binary data is CBF_PACKED compressed and carried as raw binary data. The loop for the binary data begins:

loop_
_array_data.array_id
_array_data.binary_id
_array_data.data
 image_1 1
;
--CIF-BINARY-FORMAT-SECTION--
Content-Type: application/octet-stream;
     conversions="x-CBF_PACKED"
Content-Transfer-Encoding: BINARY
X-Binary-Size: 3745758
X-Binary-ID: 1
X-Binary-Element-Type: "signed 32-bit integer"
Content-MD5: 1zsJjWPfol2GYl2V+QSXrw==

^L^Z^D<D5>^P<B8>P^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@

The second example, img2cif_packed.cif.gz (3.8 MB), is a compressed copy of an imgCIF produced by the program img2cif. The binary data is CBF_PACKED compressed, as in makecbf.cbf, but is cdBASE64 encoded. The loop for the binary data begins:

loop_
_array_data.array_id
_array_data.binary_id
_array_data.data
 image_1 1
;
--CIF-BINARY-FORMAT-SECTION--
Content-Type: application/octet-stream;
     conversions="x-CBF_PACKED"
Content-Transfer-Encoding: BASE64
X-Binary-Size: 3745758
X-Binary-ID: 1
X-Binary-Element-Type: "signed 32-bit integer"
Content-MD5: 1zsJjWPfol2GYl2V+QSXrw==

ELhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADHcRzHcRxGQQwCZsGuAKUFAIhS93U8
/91rMvpiEXw1pwoceMIBYHj78x7u9nszkeh7qm3XK6jk/Aa4x3Ecx3Ecx3Ecx3EcBzEEgApW
/y8xGar1BaqZXkcCow74Aw77fp8W5Sf2vP6O6A/SD8ZnixLf4/WMOzCgEAhqVnnv3wsk8oO9
EFa5G/3Gfq94GwLjHNE+gd8ndgf1foI+GN2LQIAneVRf9rXyCkwIyc/y/ILuHsdxHMdxHMdx
HMdxGAURAGraeHhJh6ccYbjVMKH5Xxjq3wx6VNQ4sPPCAxNNMrb/BEsADjdtYzBLtS+VJMtJ

Note that the message digest and reported binary size are the same as for the raw binary data.

The third example, cif2cbf_ehcn.cif.gz (6.8 MB), is a compressed copy of an imgCIF produced by the program cif2cbf from makecbf.cbf. The binary data has been uncompressed and is presented in hexadecimal format. The loop begins:

loop_
_array_data.array_id
_array_data.binary_id
_array_data.data
 image_1 1
;
--CIF-BINARY-FORMAT-SECTION--
Content-Type: application/octet-stream
Content-Transfer-Encoding: X-BASE16
X-Binary-Size: 21160000
X-Binary-ID: 1
X-Binary-Element-Type: "signed 32-bit integer"
Content-MD5: R90b0TjnRy6ffuF/S+kkFA==

# Hexadecimal encoding, byte 0, byte order ...4321
#
H4< 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
H4< 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
H4< 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Note that the size and message digest have changed because of undoing the compression.


Updated 13 January 1999. yaya@bernstein-plus-sons.com
ċ
example.mar2300
(3554k)
Herbert J. Bernstein,
Apr 9, 2013, 5:50 PM
ċ
makecbf.cbf.gz
(3650k)
Herbert J. Bernstein,
Apr 9, 2013, 5:54 PM
Comments