# Simind.get\_psfmeta\_from\_header may not work?

**URL:** <https://pytomography.discourse.group/t/simind-get-psfmeta-from-header-may-not-work/65>\
**Category:** Usage Questions\
**Created:** [September 22, 2024, 12:07pm UTC](https://pytomography.discourse.group/t/simind-get-psfmeta-from-header-may-not-work/65 "2024-09-22T12:07:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@Chi](https://pytomography.discourse.group/u/Chi)\
**Post date:** [September 22, 2024, 12:07pm UTC](https://pytomography.discourse.group/t/simind-get-psfmeta-from-header-may-not-work/65/1 "2024-09-22T12:07:08Z")

</div>

Hello everyone

When I run the tutorial ,[SIMIND-Tutorials/tutorial3 at master · lukepolson/SIMIND-Tutorials · GitHub](https://github.com/lukepolson/SIMIND-Tutorials/tree/master/tutorial3)

About PSF  
psf\_meta = simind.get\_psfmeta\_from\_header(‘test\_tot\_w2.h00’)  
psf\_transform = SPECTPSFTransform(psf\_meta)

If I don’t use it, I can get results, albeit of poor quality  
However, if I use simind.get\_psfmeta\_from\_header, I will get an incorrect result.  
I’m curious why the tutorial gets the right result, collimator and other parameters related to PSF are parameters in the file

 ![image](https://global.discourse-cdn.com/free1/uploads/pytomography/original/1X/4c6958ca97b2fe5aee390b0fc00961333e4631da.png)  
No PSF  
 ![image](https://global.discourse-cdn.com/free1/uploads/pytomography/original/1X/47409cee7dd83fb4de20afd78f2798f8e76de750.png)  
With PSF  
 ![image](https://global.discourse-cdn.com/free1/uploads/pytomography/original/1X/ebfc16eaae16f06262ee47d3571eba8184944e9c.png)  
tutorial figure

How can I fix it?  
And who can give me a copy of the correct .smc file and other codes

This problem has been bothering me for many days, if anyone can help me, I would appreciate it

Best wishes  
Cheng

---

<div class="post-metadata">

**Author:** ![AKMAL](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@AKMAL](https://pytomography.discourse.group/u/AKMAL)\
**Post date:** [September 22, 2024, 12:53pm UTC](https://pytomography.discourse.group/t/simind-get-psfmeta-from-header-may-not-work/65/2 "2024-09-22T12:53:33Z")

</div>

Dear @Chi, I got the right result. no problem with this tutorial

---

<div class="post-metadata">

**Author:** ![lukepolson](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@lukepolson](https://pytomography.discourse.group/u/lukepolson)\
**Post date:** [September 27, 2024, 4:59am UTC](https://pytomography.discourse.group/t/simind-get-psfmeta-from-header-may-not-work/65/3 "2024-09-27T04:59:39Z")

</div>

@Chi which version of SIMIND are you using? In SIMIND v8.0 they’ve changed it so that collimator dimensions are expressed in mm instead of cm, and this affects opening the data in PyTomography. I hope to fix and patch this soon. In the mean time, if you are using SIMIND v8.0, you can manually change the .h00 files.

---

<div class="post-metadata">

**Author:** ![Chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@Chi](https://pytomography.discourse.group/u/Chi)\
**Post date:** [September 27, 2024, 7:32am UTC](https://pytomography.discourse.group/t/simind-get-psfmeta-from-header-may-not-work/65/5 "2024-09-27T07:32:14Z")

</div>

Dear lukepolson

Thank you I soved this problem

---

<div class="post-metadata">

**Author:** ![Chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@Chi](https://pytomography.discourse.group/u/Chi)\
**Post date:** [September 27, 2024, 7:37am UTC](https://pytomography.discourse.group/t/simind-get-psfmeta-from-header-may-not-work/65/6 "2024-09-27T07:37:36Z")

</div>

If you fix this problem. Please let me know  
Thanks again
