# Get the sinogram from .cdf and .cdh

**URL:** <https://castor-project.discourse.group/t/get-the-sinogram-from-cdf-and-cdh/1140>\
**Category:** General Discussions\
**Created:** [August 8, 2025, 9:44am UTC](https://castor-project.discourse.group/t/get-the-sinogram-from-cdf-and-cdh/1140 "2025-08-08T09:44:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sharareh](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@Sharareh](https://castor-project.discourse.group/u/Sharareh)\
**Post date:** [August 8, 2025, 9:44am UTC](https://castor-project.discourse.group/t/get-the-sinogram-from-cdf-and-cdh/1140/1 "2025-08-08T09:44:12Z")

</div>

Hi

How to get the sinogram from .cdf and .cdh CASToR output files. Is there any code that can read CASToR data format and create the sinograms?

Best regards,  
Sharareh

---

<div class="post-metadata">

**Author:** ![tmerlin](https://yyz2.discourse-cdn.com/free1/user_avatar/castor-project.discourse.group/tmerlin/32/216_2.png) [@tmerlin](https://castor-project.discourse.group/u/tmerlin)\
**Post date:** [August 8, 2025, 4:54pm UTC](https://castor-project.discourse.group/t/get-the-sinogram-from-cdf-and-cdh/1140/2 "2025-08-08T16:54:01Z")

</div>

Hi,

There is no such tool directly available in CASToR as there is no specific organization of the projections in the histograms in order to make it flexible for any type of geometry.

In the following topic a (matlab) code was shared to read CASToR SPECT datafile from Simind simulations. I never used it though, so I don’t know the pre-requisites :

> [@How to read CASToR data format (.cdf) and create the sinograms](https://castor-project.discourse.group/t/how-to-read-castor-data-format-cdf-and-create-the-sinograms/695):
>
> Dear Users and Developers, How to get the sinogram from .cdf and .cdh CASToR output files. Is there any code that can read CASToR data format and create the sinograms? I would appreciate it if I can receive your experience in this regards.

Hope this helps,
