<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi Hadi,</p>
    <p>This error occurs when there is a mismatch between the expected
      size of the binary datafile and its actual size. In this case the
      actual size is a bit larger than the expected size, which is
      computed using the header metadata as the number of events times
      the size of an event. There must be an error either in the
      datafile itself, or in its description in the header. Note that
      unless you modified the code, the data size for each field
      composing an event must be 4 bytes (uint32 or float).</p>
    <p>Hope this helps</p>
    <p>Best,<br>
      Thibaut M.<br>
    </p>
    <p>PS: Please use the discourse forum for future requests:
      <a class="moz-txt-link-freetext" href="https://castor-project.discourse.group/">https://castor-project.discourse.group/</a><b> </b><br>
      (mailing-list: <b><a class="moz-txt-link-abbreviated" href="mailto:castor_project+general-discussions-5@discoursemail.com">castor_project+general-discussions-5@discoursemail.com</a></b>)<br>
    </p>
    <div class="moz-cite-prefix">On 31/12/2023 10:26, Hadi Rezaei wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEygHBnOwtAUis-2qMiCd3wWTp5VMD8Rs6Uyx2mD9ozTZkce6g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Dear Castor users</div>
        <div>I simulated a CT scanner using GATE and got 180 imageCT
          (.dat) output projections. I combined them and converted them
          to '.Cdf" with uint 16. For reconstruction, I used the
          following command but found the following error.</div>
        <div>I appreciate any guidance.   <br>
        </div>
        <div><br>
        </div>
        <div>./castor-recon -df benchmark_ct_histogram.Cdh -fout
          classic_test -oit -1 -it 4:10 -dim 80,80,9 -vox 2,2,2.5 -opti
          MLTR -proj distanceDriven -th 0 <br>
          sOutputManager::InitOutputDirectory() -> Output path is
          'classic_test'<br>
          castor-recon() -> Launch reconstruction from CASToR version
          3.1.1.<br>
          sScannerManager::Initialize() -> From scanner classic<br>
-------------------------------------------------------------------------------------------------------------------------------------<br>
          ***** iDataFileCT::CheckFileSizeConsistency() -> DataFile
          size is not consistent with the information provided by the
          user/datafile !<br>
            --> Expected size: 3440000<br>
            --> Actual size: 3600000<br>
          <br>
                ADDITIONAL INFORMATION ABOUT THE DATAFILE INITIALIZATION<br>
            --> No information about the kind of events in the data<br>
            --> No blank correction term in the data<br>
            --> Scatter correction term is enabled<br>
            --> Calibration factor value is: 1<br>
----------------------------------------------------------------------------------------------------------------------------------------<br>
          ***** vDataFile::InitializeMappedFile() -> A problem
          occurred while checking file size consistency !<br>
          ***** castor-recon() -> A problem occurred in datafile
          initialization ! Abort.<br>
          ***** Exit function called. Abort with code 1.<br>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Castor-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Castor-users@lists.castor-project.org">Castor-users@lists.castor-project.org</a>
<a class="moz-txt-link-freetext" href="https://lists.castor-project.org/mailman/listinfo/castor-users">https://lists.castor-project.org/mailman/listinfo/castor-users</a>

To look for something in the mailing-list archives, use the search box at:
<a class="moz-txt-link-freetext" href="https://castor-project.org/mailing-list">https://castor-project.org/mailing-list</a></pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Thibaut MERLIN -- PhD

Docteur en Imagerie Médicale au Laboratoire de Traitement de l'Information Medicale (LaTIM - INSERM UMR 1101)
Institut Brestois de recherche en Bio-Santé (IBRBS)
12 Avenue Foch, 29200 Brest, FRANCE
Tel: 06.75.12.24.90</pre>
  </body>
</html>