<?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="_rwmg_8cpp">
<title>/Users/bernard/b20/bsoft/src/rwparam/rwmg.cpp File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/src/rwparam/rwmg.cpp</primary></indexterm>
<para>

<para>Library routines to read and write micrograph parameters. </para>
 
</para>
<programlisting>#include &quot;rwmg.h&quot;
#include &quot;mg_processing.h&quot;
#include &quot;mg_img_proc.h&quot;
#include &quot;mg_ctf.h&quot;
#include &quot;mg_tags.h&quot;
#include &quot;rwmgSTAR.h&quot;
#include &quot;rwmgXML.h&quot;
#include &quot;rwmgEMX.h&quot;
#include &quot;rwmgIMOD.h&quot;
#include &quot;rwmgSerialEM.h&quot;
#include &quot;file_util.h&quot;
#include &quot;utilities.h&quot;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rwmg_8cpp_1aa9dec22d07fbb782a64ba97371263fdd">project_check</link> (<link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>, int flags=0)</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1a8f74869cc4e732ba0af3a0c5c71f30b7">project_display_counts</link> (<link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>)</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1ab2a46f80f4b0639d12c85ccd2b424226">field_resolve_file_access</link> (<link linkend="_struct_bfield">Bfield</link> *field, <link linkend="_struct_bmicrograph">Bmicrograph</link> *mg, <link linkend="_class_bstring">Bstring</link> filename, int flags)</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1a8051f4c9a2d83a6e9cc1f3244e72f4f6">reconstruction_resolve_file_access</link> (<link linkend="_struct_breconstruction">Breconstruction</link> *rec, <link linkend="_class_bstring">Bstring</link> filename, int flags)</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1aa1179dbc243d10d7221b801e8c231062">project_resolve_file_access</link> (<link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>, <link linkend="_class_bstring">Bstring</link> filename, int flags)</para>
</listitem>
            <listitem><para><link linkend="_struct_bproject">Bproject</link> * <link linkend="_rwmg_8cpp_1a0eacd5f4eb50da581ac6b34055622ed8">read_project</link> (const char *filename, int flags)</para>

<para>Reading micrograph parameters from files. </para>
</listitem>
            <listitem><para><link linkend="_struct_bproject">Bproject</link> * <link linkend="_rwmg_8cpp_1a572485060ce86551a3077661b23707f9">read_project</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, int flags)</para>
</listitem>
            <listitem><para><link linkend="_struct_bproject">Bproject</link> * <link linkend="_rwmg_8cpp_1af9ed582eecacf0345ddc1d34bcb529bb">read_project</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_class_bstring">Bstring</link> &amp;xsdfile, int flags)</para>
</listitem>
            <listitem><para><link linkend="_struct_bproject">Bproject</link> * <link linkend="_rwmg_8cpp_1a020de21d6024361dac2ac1437549036b">read_project</link> (<link linkend="_class_bstring">Bstring</link> *file_list, int flags)</para>
</listitem>
            <listitem><para><link linkend="_struct_bproject">Bproject</link> * <link linkend="_rwmg_8cpp_1a72ca9c94f77d67769ec39416e9a66513">read_project</link> (<link linkend="_class_bstring">Bstring</link> *file_list, <link linkend="_class_bstring">Bstring</link> &amp;xsdfile, int flags)</para>
</listitem>
            <listitem><para>long <link linkend="_rwmg_8cpp_1aae1896d3ffd6bca230791ab8e3d90cb3">append_project</link> (<link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>, <link linkend="_class_bstring">Bstring</link> *file_list, <link linkend="_class_bstring">Bstring</link> &amp;xsdfile, int flags)</para>
</listitem>
            <listitem><para><link linkend="_struct_bparticle">Bparticle</link> * <link linkend="_rwmg_8cpp_1a597c409a9bd0e1a0dcb2d9a9955f9696">read_particle</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bparticle">Bparticle</link> **partlist, <link linkend="_mg__processing_8h_1a9b8250bcd3dbae566bd5ef8a6089b1cf">FOMType</link> fom_tag[<link linkend="_mg__processing_8h_1ae84172dd7ca73ab08d8b2f3e05e4a1bd">NFOM</link>])</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1a5aa2d6a0d56bca17b5f65f256515d30e">write_project</link> (const char *filename, <link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>)</para>

<para>Writing micrograph parameters to a file. </para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1a1b47fb67827358d8b784d016a856e893">write_project</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>, int mg_select, int rec_select)</para>

<para>Writing micrograph parameters to a file. </para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1ab001b12b73275e9868c7a80e082b470c">write_project</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>, int flags)</para>

<para>Writing micrograph parameters to a file. </para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1abd9e6ed2a09aabe9d5c8691fab3d54d3">write_particle</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bparticle">Bparticle</link> *part, int euler_flag, int omega_flag, <link linkend="_mg__processing_8h_1a9b8250bcd3dbae566bd5ef8a6089b1cf">FOMType</link> fom_tag[<link linkend="_mg__processing_8h_1ae84172dd7ca73ab08d8b2f3e05e4a1bd">NFOM</link>])</para>
</listitem>
            <listitem><para><link linkend="_class_bstring">Bstring</link> <link linkend="_rwmg_8cpp_1ad72b47c084a99919077330be38caf202">ppx_filename</link> (<link linkend="_class_bstring">Bstring</link> &amp;mg_id, int part_id)</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1afe76ef4414ce4589f2c4e4f57c844ae3">ppx_check</link> (<link linkend="_struct_bparticle">Bparticle</link> *part, <link linkend="_mg__processing_8h_1a9b8250bcd3dbae566bd5ef8a6089b1cf">FOMType</link> fom_tag[<link linkend="_mg__processing_8h_1ae84172dd7ca73ab08d8b2f3e05e4a1bd">NFOM</link>])</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1a7999eb25acddc76782e8fa4218efe8ed">ppx_check</link> (<link linkend="_struct_bparticle">Bparticle</link> *part)</para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1a0c7cf86627101d604ac69f1a2945e6cc">project_update_comment</link> (<link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>, int n, char **strings)</para>

<para>Puts a set of strings and time in the main comment of a project. </para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1a3aee294456327abd1824a9d4ffd651b5">project_split_write</link> (<link linkend="_class_bstring">Bstring</link> &amp;filename, <link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>)</para>

<para>Splits a project into sets of particle selections and write the files. </para>
</listitem>
            <listitem><para>int <link linkend="_rwmg_8cpp_1ab38f3333be03dec4c369e84b41180848">project_split_field_write</link> (<link linkend="_struct_bproject">Bproject</link> *<link linkend="_tcltk__bmodel_8cpp_1aea438e09dfc03683a0f49a05e9a69cac">project</link>)</para>

<para>Splits a project into sets of particle selections and write the files. </para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rwmg_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Library routines to read and write micrograph parameters. </para>

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

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

<para>Created: 20030418 </para>

<para>Modified: 20190911 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rwmg_8cpp_1aae1896d3ffd6bca230791ab8e3d90cb3"/>    <section>
    <title>append_project()</title>
<indexterm><primary>append_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>append_project</secondary></indexterm>
<para><computeroutput>long append_project (<link linkend="_struct_bproject">Bproject</link> * project, <link linkend="_class_bstring">Bstring</link> * file_list, <link linkend="_class_bstring">Bstring</link> &amp; xsdfile, int flags)</computeroutput></para><para>
Definition at line 282 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1ab2a46f80f4b0639d12c85ccd2b424226"/>    <section>
    <title>field_resolve_file_access()</title>
<indexterm><primary>field_resolve_file_access</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>field_resolve_file_access</secondary></indexterm>
<para><computeroutput>int field_resolve_file_access (<link linkend="_struct_bfield">Bfield</link> * field, <link linkend="_struct_bmicrograph">Bmicrograph</link> * mg, <link linkend="_class_bstring">Bstring</link> filename, int flags)</computeroutput></para><para>
Definition at line 61 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1afe76ef4414ce4589f2c4e4f57c844ae3"/>    <section>
    <title>ppx_check()<computeroutput>[1/2]</computeroutput></title>
<indexterm><primary>ppx_check</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>ppx_check</secondary></indexterm>
<para><computeroutput>int ppx_check (<link linkend="_struct_bparticle">Bparticle</link> * part, <link linkend="_mg__processing_8h_1a9b8250bcd3dbae566bd5ef8a6089b1cf">FOMType</link> fom_tag[NFOM])</computeroutput></para><para>
Definition at line 418 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a7999eb25acddc76782e8fa4218efe8ed"/>    <section>
    <title>ppx_check()<computeroutput>[2/2]</computeroutput></title>
<indexterm><primary>ppx_check</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>ppx_check</secondary></indexterm>
<para><computeroutput>int ppx_check (<link linkend="_struct_bparticle">Bparticle</link> * part)</computeroutput></para><para>
Definition at line 450 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1ad72b47c084a99919077330be38caf202"/>    <section>
    <title>ppx_filename()</title>
<indexterm><primary>ppx_filename</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>ppx_filename</secondary></indexterm>
<para><computeroutput><link linkend="_class_bstring">Bstring</link> ppx_filename (<link linkend="_class_bstring">Bstring</link> &amp; mg_id, int part_id)</computeroutput></para><para>
Definition at line 412 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1aa9dec22d07fbb782a64ba97371263fdd"/>    <section>
    <title>project_check()</title>
<indexterm><primary>project_check</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>project_check</secondary></indexterm>
<para><computeroutput>int project_check (<link linkend="_struct_bproject">Bproject</link> * project, int flags = <computeroutput>0</computeroutput>
)</computeroutput></para><para>
Definition at line 488 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a8f74869cc4e732ba0af3a0c5c71f30b7"/>    <section>
    <title>project_display_counts()</title>
<indexterm><primary>project_display_counts</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>project_display_counts</secondary></indexterm>
<para><computeroutput>int project_display_counts (<link linkend="_struct_bproject">Bproject</link> * project)</computeroutput></para><para>
Definition at line 28 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1aa1179dbc243d10d7221b801e8c231062"/>    <section>
    <title>project_resolve_file_access()</title>
<indexterm><primary>project_resolve_file_access</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>project_resolve_file_access</secondary></indexterm>
<para><computeroutput>int project_resolve_file_access (<link linkend="_struct_bproject">Bproject</link> * project, <link linkend="_class_bstring">Bstring</link> filename, int flags)</computeroutput></para><para>
Definition at line 117 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1ab38f3333be03dec4c369e84b41180848"/>    <section>
    <title>project_split_field_write()</title>
<indexterm><primary>project_split_field_write</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>project_split_field_write</secondary></indexterm>
<para><computeroutput>int project_split_field_write (<link linkend="_struct_bproject">Bproject</link> * project)</computeroutput></para><para>

<para>Splits a project into sets of particle selections and write the files. </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>*project</entry>
                                <entry>
<para>the project. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int number of field files generated. <literallayout><computeroutput>The relevant micrographs are selected for each particle selection number
and written into a file.
</computeroutput></literallayout> </para>
</formalpara>
</para>
<para>
Definition at line 678 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a3aee294456327abd1824a9d4ffd651b5"/>    <section>
    <title>project_split_write()</title>
<indexterm><primary>project_split_write</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>project_split_write</secondary></indexterm>
<para><computeroutput>int project_split_write (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bproject">Bproject</link> * project)</computeroutput></para><para>

<para>Splits a project into sets of particle selections and write the files. </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>&amp;filename</entry>
                                <entry>
<para>base filename modified to include the particle selection number. </para>
</entry>
                            </row>
                            <row>
                                <entry>*project</entry>
                                <entry>
<para>the project. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int number of sets generated. <literallayout><computeroutput>The relevant micrographs are selected for each particle selection number
and written into a file.
</computeroutput></literallayout> </para>
</formalpara>
</para>
<para>
Definition at line 610 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a0c7cf86627101d604ac69f1a2945e6cc"/>    <section>
    <title>project_update_comment()</title>
<indexterm><primary>project_update_comment</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>project_update_comment</secondary></indexterm>
<para><computeroutput>int project_update_comment (<link linkend="_struct_bproject">Bproject</link> * project, int n, char ** strings)</computeroutput></para><para>

<para>Puts a set of strings and time in the main comment of a project. </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>*project</entry>
                                <entry>
<para>the project. </para>
</entry>
                            </row>
                            <row>
                                <entry>n</entry>
                                <entry>
<para>the number of strings. </para>
</entry>
                            </row>
                            <row>
                                <entry>**strings</entry>
                                <entry>
<para>an array of strings. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int string length of the new comment. <literallayout><computeroutput>This is designed to pack the command line into a string followed by
a second string for the time.
</computeroutput></literallayout> </para>
</formalpara>
</para>
<para>
Definition at line 468 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a597c409a9bd0e1a0dcb2d9a9955f9696"/>    <section>
    <title>read_particle()</title>
<indexterm><primary>read_particle</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>read_particle</secondary></indexterm>
<para><computeroutput><link linkend="_struct_bparticle">Bparticle</link>* read_particle (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bparticle">Bparticle</link> ** partlist, <link linkend="_mg__processing_8h_1a9b8250bcd3dbae566bd5ef8a6089b1cf">FOMType</link> fom_tag[NFOM])</computeroutput></para><para>
Definition at line 304 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a0eacd5f4eb50da581ac6b34055622ed8"/>    <section>
    <title>read_project()<computeroutput>[1/5]</computeroutput></title>
<indexterm><primary>read_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>read_project</secondary></indexterm>
<para><computeroutput><link linkend="_struct_bproject">Bproject</link>* read_project (const char * filename, int flags)</computeroutput></para><para>

<para>Reading micrograph parameters from files. </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>&amp;filename</entry>
                                <entry>
<para>file name (or comma-delimited list). </para>
</entry>
                            </row>
                            <row>
                                <entry>flags</entry>
                                <entry>
<para>flags to modify behavior. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>Bproject* project structure, NULL if reading failed. <literallayout><computeroutput>Flags (bits):
1.  check particle images against images.
8.  warn if files not found.
16. delete file names of files not found.
</computeroutput></literallayout> </para>
</formalpara>
</para>
<para>
Definition at line 140 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a572485060ce86551a3077661b23707f9"/>    <section>
    <title>read_project()<computeroutput>[2/5]</computeroutput></title>
<indexterm><primary>read_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>read_project</secondary></indexterm>
<para><computeroutput><link linkend="_struct_bproject">Bproject</link>* read_project (<link linkend="_class_bstring">Bstring</link> &amp; filename, int flags)</computeroutput></para><para>
Definition at line 146 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1af9ed582eecacf0345ddc1d34bcb529bb"/>    <section>
    <title>read_project()<computeroutput>[3/5]</computeroutput></title>
<indexterm><primary>read_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>read_project</secondary></indexterm>
<para><computeroutput><link linkend="_struct_bproject">Bproject</link>* read_project (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_class_bstring">Bstring</link> &amp; xsdfile, int flags)</computeroutput></para><para>
Definition at line 152 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a020de21d6024361dac2ac1437549036b"/>    <section>
    <title>read_project()<computeroutput>[4/5]</computeroutput></title>
<indexterm><primary>read_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>read_project</secondary></indexterm>
<para><computeroutput><link linkend="_struct_bproject">Bproject</link>* read_project (<link linkend="_class_bstring">Bstring</link> * file_list, int flags)</computeroutput></para><para>
Definition at line 202 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a72ca9c94f77d67769ec39416e9a66513"/>    <section>
    <title>read_project()<computeroutput>[5/5]</computeroutput></title>
<indexterm><primary>read_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>read_project</secondary></indexterm>
<para><computeroutput><link linkend="_struct_bproject">Bproject</link>* read_project (<link linkend="_class_bstring">Bstring</link> * file_list, <link linkend="_class_bstring">Bstring</link> &amp; xsdfile, int flags)</computeroutput></para><para>
Definition at line 208 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a8051f4c9a2d83a6e9cc1f3244e72f4f6"/>    <section>
    <title>reconstruction_resolve_file_access()</title>
<indexterm><primary>reconstruction_resolve_file_access</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>reconstruction_resolve_file_access</secondary></indexterm>
<para><computeroutput>int reconstruction_resolve_file_access (<link linkend="_struct_breconstruction">Breconstruction</link> * rec, <link linkend="_class_bstring">Bstring</link> filename, int flags)</computeroutput></para><para>
Definition at line 92 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1abd9e6ed2a09aabe9d5c8691fab3d54d3"/>    <section>
    <title>write_particle()</title>
<indexterm><primary>write_particle</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>write_particle</secondary></indexterm>
<para><computeroutput>int write_particle (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bparticle">Bparticle</link> * part, int euler_flag, int omega_flag, <link linkend="_mg__processing_8h_1a9b8250bcd3dbae566bd5ef8a6089b1cf">FOMType</link> fom_tag[NFOM])</computeroutput></para><para>
Definition at line 403 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a5aa2d6a0d56bca17b5f65f256515d30e"/>    <section>
    <title>write_project()<computeroutput>[1/3]</computeroutput></title>
<indexterm><primary>write_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>write_project</secondary></indexterm>
<para><computeroutput>int write_project (const char * filename, <link linkend="_struct_bproject">Bproject</link> * project)</computeroutput></para><para>

<para>Writing micrograph parameters to a file. </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>*filename</entry>
                                <entry>
<para>file name (or comma-delimited list). </para>
</entry>
                            </row>
                            <row>
                                <entry>*project</entry>
                                <entry>
<para>project structure. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). </para>
</formalpara>
</para>
<para>
Definition at line 320 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1a1b47fb67827358d8b784d016a856e893"/>    <section>
    <title>write_project()<computeroutput>[2/3]</computeroutput></title>
<indexterm><primary>write_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>write_project</secondary></indexterm>
<para><computeroutput>int write_project (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bproject">Bproject</link> * project, int mg_select, int rec_select)</computeroutput></para><para>

<para>Writing micrograph parameters to a file. </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>*filename</entry>
                                <entry>
<para>file name (or comma-delimited list). </para>
</entry>
                            </row>
                            <row>
                                <entry>*project</entry>
                                <entry>
<para>project structure. </para>
</entry>
                            </row>
                            <row>
                                <entry>mg_select</entry>
                                <entry>
<para>flag to only write selected micrographs. </para>
</entry>
                            </row>
                            <row>
                                <entry>rec_select</entry>
                                <entry>
<para>flag to only write selected reconstructions. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). </para>
</formalpara>
</para>
<para>
Definition at line 335 of file rwmg.cpp.</para>
    </section><anchor xml:id="_rwmg_8cpp_1ab001b12b73275e9868c7a80e082b470c"/>    <section>
    <title>write_project()<computeroutput>[3/3]</computeroutput></title>
<indexterm><primary>write_project</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>write_project</secondary></indexterm>
<para><computeroutput>int write_project (<link linkend="_class_bstring">Bstring</link> &amp; filename, <link linkend="_struct_bproject">Bproject</link> * project, int flags)</computeroutput></para><para>

<para>Writing micrograph parameters to a file. </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>*filename</entry>
                                <entry>
<para>file name (or comma-delimited list). </para>
</entry>
                            </row>
                            <row>
                                <entry>*project</entry>
                                <entry>
<para>project structure. </para>
</entry>
                            </row>
                            <row>
                                <entry>flags</entry>
                                <entry>
<para>flags to modify behavior. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). <literallayout><computeroutput>Flags (bits):
1.  check particle images.
2.  write only selected micrographs.
4.  write only selected reconstructions.
8.  warn if files not found.
16. delete file names of files not found.
</computeroutput></literallayout> </para>
</formalpara>
</para>
<para>
Definition at line 358 of file rwmg.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_rwmg_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>rwmg.cpp</secondary></indexterm>
<indexterm><primary>rwmg.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
