<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_rw_m_r_c_8h">
<title>/Users/bernard/b20/bsoft/include/rwMRC.h File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/include/rwMRC.h</primary></indexterm>
<para>

<para>Header file for reading and writing MRC files. </para>
 
</para>
<programlisting>#include &quot;rwimg.h&quot;
</programlisting><simplesect>
    <title>Classes    </title>
        <itemizedlist>
            <listitem><para>struct <link linkend="_struct_m_r_cheadold">MRCheadold</link></para>
</listitem>
            <listitem><para>struct <link linkend="_struct_m_r_chead2000">MRChead2000</link></para>
</listitem>
            <listitem><para>struct <link linkend="_struct_m_r_chead">MRChead</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Macros    </title>
        <itemizedlist>
            <listitem><para>#define <link linkend="_rw_m_r_c_8h_1ab41c370de3d94461105192390c43d042">MRCSIZE</link>   1024</para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_m_r_c_8h_1a3a590c633f1b59f3a6ad16631c252648">readMRC</link> (<link linkend="_class_bimage">Bimage</link> *p, int readdata, int img_select)</para>

<para>Reading a MRC map image file format. </para>
</listitem>
            <listitem><para>int <link linkend="_rw_m_r_c_8h_1a6d556a6c968010c7504c4cf8b15bf924">writeMRC</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>

<para>Writing a MRC map image file format. </para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Header file for reading and writing MRC files. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 19990321 </para>

<para>Modified: 20111217 <literallayout><computeroutput>Format: 3D crystallographic image file format for the MRC package
</computeroutput></literallayout> </para>
</formalpara>
</para>
</section>
<section>
<title>Macro Definition Documentation</title>
<anchor xml:id="_rw_m_r_c_8h_1ab41c370de3d94461105192390c43d042"/>    <section>
    <title>MRCSIZE</title>
<indexterm><primary>MRCSIZE</primary><secondary>rwMRC.h</secondary></indexterm>
<indexterm><primary>rwMRC.h</primary><secondary>MRCSIZE</secondary></indexterm>
<para><computeroutput>#define MRCSIZE   1024</computeroutput></para><para>
Definition at line 13 of file rwMRC.h.</para>
</section>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rw_m_r_c_8h_1a3a590c633f1b59f3a6ad16631c252648"/>    <section>
    <title>readMRC()</title>
<indexterm><primary>readMRC</primary><secondary>rwMRC.h</secondary></indexterm>
<indexterm><primary>rwMRC.h</primary><secondary>readMRC</secondary></indexterm>
<para><computeroutput>int readMRC (<link linkend="_class_bimage">Bimage</link> * p, int readdata, int img_select)</computeroutput></para><para>

<para>Reading a MRC map image file format. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*p</entry>
                                <entry>
<para>the image structure. </para>
</entry>
                            </row>
                            <row>
                                <entry>readdata</entry>
                                <entry>
<para>flag to activate reading of image data. </para>
</entry>
                            </row>
                            <row>
                                <entry>img_select</entry>
                                <entry>
<para>image selection in multi-image file (-1 = all images). </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). A 3D image format used in electron microscopy. Header size: 1024 bytes followed by the symmetry operator table which is composed of 80 character lines, each line for a symmetry operator. File format extensions: .mrc The identifier is a 4-byte machine stamp (same as for CCP4 maps): 1 Big-endian IEEE 17 17 00 00 2 VAX 34 65 00 00 3 Cray - 4 Little-endian IEEE 68 65 00 00 5 Convex 85 17 00 00 6 Fijitsu VP - (Note: not always implemented - so unreliable) Byte order determination: Data type and third dimension values must be less than 256*256. Data types: 0 = signed byte, 1 = short, 2 = float, 3 = complex short, 4 = complex float. <link linkend="_class_transform">Transform</link> type: Centered hermitian The x-dimension contains the x-size of the full transform </para>
</formalpara>
</para>
<para>
Definition at line 58 of file rwMRC.cpp.</para>
    </section><anchor xml:id="_rw_m_r_c_8h_1a6d556a6c968010c7504c4cf8b15bf924"/>    <section>
    <title>writeMRC()</title>
<indexterm><primary>writeMRC</primary><secondary>rwMRC.h</secondary></indexterm>
<indexterm><primary>rwMRC.h</primary><secondary>writeMRC</secondary></indexterm>
<para><computeroutput>int writeMRC (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>

<para>Writing a MRC map image file format. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*p</entry>
                                <entry>
<para>the image structure. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). A 3D image format used in electron microscopy. </para>
</formalpara>
</para>
<para>
Definition at line 276 of file rwMRC.cpp.</para>
</section>
</section>
</section>
