# Better Resolution in USRBIN

**URL:** <https://fluka-forum.web.cern.ch/t/better-resolution-in-usrbin/2622>\
**Category:** Flair\
**Created:** [5 January 2022 15:03 UTC](https://fluka-forum.web.cern.ch/t/better-resolution-in-usrbin/2622 "2022-01-05T15:03:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![CarstenAschmann](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/c/ebca7d/32.png) [@CarstenAschmann](https://fluka-forum.web.cern.ch/u/CarstenAschmann)\
**Post date:** [5 January 2022 15:03 UTC](https://fluka-forum.web.cern.ch/t/better-resolution-in-usrbin/2622/1 "2022-01-05T15:03:09Z")

</div>

Dear Community,

I would like to recreate a Fluka simulation. For this I got the .flair and the .inp file from my lecturer. But with the same settings my plot (figure 1) has a lower resolution than the given one (figure 2).  
Is there any setting with which I can increase the resolution of the plot?

![Dosisverteilung 2MV](https://fluka-forum.web.cern.ch/uploads/default/original/2X/1/19a48ecaab17021fecbac87e5895c193ee333f17.jpeg)  
(figure 1)

 ![Screenshot 2022-01-05 155840](https://fluka-forum.web.cern.ch/uploads/default/original/2X/5/59cba32526c23ec4fc9a483ad40d91f330dc1abb.jpeg)  
(figure 2)

---

<div class="post-metadata">

**Author:** ![amario](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/a/47e85d/32.png) [@amario](https://fluka-forum.web.cern.ch/u/amario)\
**Post date:** [5 January 2022 15:13 UTC](https://fluka-forum.web.cern.ch/t/better-resolution-in-usrbin/2622/2 "2022-01-05T15:13:02Z")

</div>

Dear @CarstenAschmann,

It seems to me that the two plots have been obtained using different binnings. In the top plot, I can count 20 bins along the y-axis, within the target. Instead, in the bottom plot, I can count about twice as many.  
Also, the titles of the two plots seem to indicates that they are actually showing something different.

---

<div class="post-metadata">

**Author:** ![CarstenAschmann](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/c/ebca7d/32.png) [@CarstenAschmann](https://fluka-forum.web.cern.ch/u/CarstenAschmann)\
**Post date:** [5 January 2022 18:16 UTC](https://fluka-forum.web.cern.ch/t/better-resolution-in-usrbin/2622/3 "2022-01-05T18:16:19Z")

</div>

Dear @amario,  
thank you for your reply.  
Sorry for the different titles of the two plots. I renamed it so I wouldn’t get confused with my lecturer’s label. But the plots show the same issue.  
Can you please tell me how to increase the binning number so I can get similar results?

---

<div class="post-metadata">

**Author:** ![amario](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/a/47e85d/32.png) [@amario](https://fluka-forum.web.cern.ch/u/amario)\
**Post date:** [6 January 2022 08:36 UTC](https://fluka-forum.web.cern.ch/t/better-resolution-in-usrbin/2622/4 "2022-01-06T08:36:56Z")

</div>

To increase the number of bins in a given direction, you need to increase NX or NY or NZ in the USRBIN card. Also, if you want to obtain exactly the same results of your lecturer, you should also set the same minimum and maximum value for each of the three coordinates.  
I recommend you to have a look at the [manual for the USRBIN card](https://flukafiles.web.cern.ch/manual/USRBIN.html) and at the [lecture on scoring](https://indico.cern.ch/event/1012211/contributions/4247796/attachments/2257010/3829959/08_Scoring_I_2021_online.pdf) from the last Fluka course.

---

<div class="post-metadata">

**Author:** ![CarstenAschmann](https://fluka-forum.web.cern.ch/letter_avatar_proxy/v4/letter/c/ebca7d/32.png) [@CarstenAschmann](https://fluka-forum.web.cern.ch/u/CarstenAschmann)\
**Post date:** [6 January 2022 14:25 UTC](https://fluka-forum.web.cern.ch/t/better-resolution-in-usrbin/2622/5 "2022-01-06T14:25:59Z")

</div>

Thank you very much @amario .  
My request was solved by your answer.

---

<div class="post-metadata">

**Author:** ![horvathd](https://fluka-forum.web.cern.ch/user_avatar/fluka-forum.web.cern.ch/horvathd/32/10584_2.png) [@horvathd](https://fluka-forum.web.cern.ch/u/horvathd)\
**Post date:** [6 January 2022 14:36 UTC](https://fluka-forum.web.cern.ch/t/better-resolution-in-usrbin/2622/6 "2022-01-06T14:36:43Z")

</div>

Closed on 6 January 2022 14:36 UTC


