# McCryoT: Log Texture Scaling

**URL:** <https://molflow-forum.web.cern.ch/t/mccryot-log-texture-scaling/122>\
**Category:** Bugs & Issues\
**Created:** [June 8, 2015, 12:15pm UTC](https://molflow-forum.web.cern.ch/t/mccryot-log-texture-scaling/122 "2015-06-08T12:15:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![5171e2f9ea9c6679e1ef](https://molflow-forum.web.cern.ch/letter_avatar_proxy/v4/letter/5/a698b9/32.png) [@5171e2f9ea9c6679e1ef](https://molflow-forum.web.cern.ch/u/5171e2f9ea9c6679e1ef)\
**Post date:** [June 8, 2015, 12:15pm UTC](https://molflow-forum.web.cern.ch/t/mccryot-log-texture-scaling/122/1 "2015-06-08T12:15:30Z")

</div>

Hello,

I have used McCryoT to determine the heat loads via radiation on my cryostat. When trying to generate some meaningful pictures for an upcoming presentation, I ran into some problems with the texture scaling:

- min and max values cannot be set individually, which leads to a reduction in the usable colorspace

- when switching to logarithmic scale the colorbar turns to black and white

- the min value is then set autmatically to the mininmum simulated value. I would like to use a fixed min and max value to compare different simulations.

Thank you for your time.

Kind Regards

Frederic Chill

---

<div class="post-metadata">

**Author:** ![maarton](https://molflow-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@maarton](https://molflow-forum.web.cern.ch/u/maarton)\
**Post date:** [June 9, 2015, 4:15am UTC](https://molflow-forum.web.cern.ch/t/mccryot-log-texture-scaling/122/2 "2015-06-09T04:15:57Z")

</div>

Dear Frederic, McCryoT was a quick test project and it wasn’t developed in the last 2 years. While I didn’t encounter this bug, I’ll double check as soon as I’ll have myhands on a Windows machine. This week I’m out of office. I’ll get back to you.

---

<div class="post-metadata">

**Author:** ![maarton](https://molflow-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/e5b9ba/32.png) [@maarton](https://molflow-forum.web.cern.ch/u/maarton)\
**Post date:** [June 9, 2015, 4:13pm UTC](https://molflow-forum.web.cern.ch/t/mccryot-log-texture-scaling/122/3 "2015-06-09T16:13:40Z")

</div>

Dear Frederick,

I checked and everything is as you say. The min/max is deliberately the same, I believe a scale which changes linearity at 0 would be confusing.

The colorbar turns black and white at log values because the framework I use doesn't allow a negative / positive log scale display. Nevertheless it does the scaling correctly, between the smallest value corresponding to black, and the negative/positive parts of the scale following colors logarithmically. Implementing this correctly would be possible but I don't plan it as McCryoT was last used by us in 2012 (sorry).

Anyway, let me give you an advice just to check if you use it correctly:

- All surfaces should have Cosine desorption enabled
- Texture should count desorption AND absorption (absorption is counted positively and desorption negatively), unless you want to visualize only the emitted/received heat and not both
- All surfaces should then have their temperatures and emissivities assigned.

That's it. Good luck, Marton
