<?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_g_r_d_8cpp">
<title>/Users/bernard/b20/bsoft/src/rwimg/rwGRD.cpp File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/src/rwimg/rwGRD.cpp</primary></indexterm>
<para>

<para>Functions for reading and writing GRD files. </para>
 
</para>
<programlisting>#include &quot;rwGRD.h&quot;
#include &quot;file_util.h&quot;
#include &quot;utilities.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_g_r_d_8cpp_1a2d0bed344e9fe6be3f674f9d6f302ce2">readGRD</link> (<link linkend="_class_bimage">Bimage</link> *p, int readdata)</para>

<para>Reading a Basel GRD map image file format. </para>
</listitem>
            <listitem><para>int <link linkend="_rw_g_r_d_8cpp_1a34639b188525f7a7845c68b5e0d38be8">writeGRD</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>

<para>Writing a Basel GRD map image file format. </para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_g_r_d_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Functions for reading and writing GRD files. </para>

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

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

<para>Created: 19990410 </para>

<para>Modified: 20121005 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rw_g_r_d_8cpp_1a2d0bed344e9fe6be3f674f9d6f302ce2"/>    <section>
    <title>readGRD()</title>
<indexterm><primary>readGRD</primary><secondary>rwGRD.cpp</secondary></indexterm>
<indexterm><primary>rwGRD.cpp</primary><secondary>readGRD</secondary></indexterm>
<para><computeroutput>int readGRD (<link linkend="_class_bimage">Bimage</link> * p, int readdata)</computeroutput></para><para>

<para>Reading a Basel GRD 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>
                        </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: 512 bytes (fixed). File format extensions: .grd The identifier is a 4-byte magic number (not used). Machine identifier: 1 = little endian, 2 = big endian. Byte order determination: Data type and third dimension values must be less than 256*256. Data types: 1 = byte, 2 = float, 3 = complex float 4 = 3-value vector, 5 = view </para>
</formalpara>
</para>
<para>
Definition at line 31 of file rwGRD.cpp.</para>
    </section><anchor xml:id="_rw_g_r_d_8cpp_1a34639b188525f7a7845c68b5e0d38be8"/>    <section>
    <title>writeGRD()</title>
<indexterm><primary>writeGRD</primary><secondary>rwGRD.cpp</secondary></indexterm>
<indexterm><primary>rwGRD.cpp</primary><secondary>writeGRD</secondary></indexterm>
<para><computeroutput>int writeGRD (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>

<para>Writing a Basel GRD 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 125 of file rwGRD.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_rw_g_r_d_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>rwGRD.cpp</secondary></indexterm>
<indexterm><primary>rwGRD.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
