2 ***********************************************************
3 $SNARK_Header: S N A R K 1 4 - A PICTURE RECONSTRUCTION PROGRAM $
4 $HeadURL: svn://dig.cs.gc.cuny.edu/snark/trunk/src/snark/creaer.cpp $
5 $LastChangedRevision: 85 $
6 $Date: 2014-07-02 16:07:08 -0400 (Wed, 02 Jul 2014) $
8 ***********************************************************
10 THIS SUBROUTINE HANDLES THE ERRORS ENCOUNTERED IN INPUT DATA
25 void creaer(INTEGER code)
31 if ((code < 1) || (code > 27))
39 "\n **** only one create/picture/projection command allowed");
43 fprintf(output, "\n **** keyword - %s - missing", int2str(word));
47 fprintf(output, "\n **** 0 or more than 7 energy levels");
52 "\n **** percentage of photons is negative or total is not = 100");
57 "\n **** unknown object type - not ellipse, rectangle, triangle, sector or segment");
62 "\n **** value for semiaxes for object is negative, 0 or too small");
66 fprintf(output, "\n **** scale factor is too small or zero");
71 "\n **** value for nave1 or nave2 is negative, zero, or even; or nave2 > 13");
75 fprintf(output, "\n **** value for nelem is negative, 0 or even");
80 "\n **** negative, zero or too small a value for pixsiz or pinc");
84 fprintf(output, "\n **** inconsistent geometry specification");
89 "\n **** uniform or variable spacing must be specified");
93 fprintf(output, "\n **** nrays is negative, zero or even");
97 fprintf(output, "\n **** number of projections is negative or zero");
102 "\n **** ray calculation option must be user or program");
106 fprintf(output, "\n **** calibration type out of range");
111 "\n **** scattering peak or width is negative, zero or too small");
116 "\n **** unknown noise type or keyword or seed/back missing");
121 "\n **** aperture weight given is negative, or sum of aperture weights is negative or zero");
125 fprintf(output, "\n **** equal spacing but only 1 projection");
130 "\n **** mono or polychromatic spectrum must be specified");
134 fprintf(output, "\n");
139 "\n **** picture description must preceed projection data");
144 "\n **** test picture not present - pseudo data not created");
149 "\n **** unexpected end of file or line, insufficient data");
154 "\n **** quantum mean or calibration is negative or too small");
159 "\n **** value of multiplicative noise mean is too small");
163 fprintf(output, "\n **** program aborted\n");