<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt'>
<p>Dear users/developers,</p>
<p>I am trying to create a program that will write experimental results to the appropriate .Cdf ascii format. I am using this loop:</p>
<p> char buffer [20];<br /> sprintf(buffer, "CDF_CstrProj.Cdf");<br /> pFile = fopen (buffer, "w");<br /> for (id1=0; id1<bins_elts; id1++)<br /> {<br /> for (id2=0; id2<nCrystalsTot; id2++)<br /> {<br /> fprintf(pFile,"%6d ",timeMS[id1][id2]);<br /> fprintf(pFile,"%6d ",data[id1][id2]);<br /> fprintf(pFile,"%6d ",id1);<br /> fprintf(pFile,"%6d ",id2);<br /> }<br /> }</p>
<p>Where id1 is the projectionID (0-35) and id2 is the pixelID (0-2997). Data are the counts. I am using integers in data but I have also try it with floats. Then by using a .Cdh I try to reconstruct. There is a problem there. Probably castor-recon does not recognize the file correct, because I am getting this fault repeatedly (the "Projection index" only change:</p>
<p>***** oIterativeAlgorithm::StepInnerLoopInsideSubsetLoop() -> A problem occured while computing the projection line !<br />***** iScannerSPECTConv::GetPositionsAndOrientations() -> Projection index (538976288) out of range [0:35] !<br />***** vProjector::Project() -> A problem occured while getting positions and orientations from scanner !<br />***** oProjectorManager::ComputeProjectionLine() -> A problem occured while forward projecting an event !</p>
<p>I am attaching the file in order that you take a look and help me.</p>
<p> </p>
<p>Thank you in advance,</p>
<p>Konstantinos</p>
<p> </p>
<div>-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><hr /> Konstantinos P. Chatzipapas <br /> Physicist, MSc <br /> Faculty of Medical Physics <br /> <strong>University of Patras</strong> <br /><br /> web page: <em><a href="http://www.physicsmag.com">Physics Magazine</a></em></div>
</div>
<p> </p>
</body></html>