[yt-users] Flash Units Solved

Markus Haider markus.haider at uibk.ac.at
Tue Jul 15 02:56:24 PDT 2014


Sorry for my previous mail. It turns out, I accidentally loaded a 
snapshot which was not at redshift zero, and therefore I was just 
missing the scale factor.

Cheers,
Markus

On 2014-07-15 11:53, Markus Haider wrote:
> Hi,
>
> I'm moving some of my plotting scripts to yt 3.0, and I think some 
> things about the units might have changed.
>
> There is one thing which puzzles me about the units using the Flash 
> frontend. My Flash simulation is a 60 Mpccm/h volume.
>
> If I do
>
> In [32]: ff.domain_width
>
> I get
>
> Out[32]: YTArray([  2.75876444e+26,   2.75876444e+26, 2.75876444e+26]) 
> code_length
>
> which is the size of my 60 Mpccm/h in cm (I used h 0.6711). However, 
> if I do
>
> In [40]: ff.domain_width.units
>
> it says
>
> Out[40]: code_length
>
> but code_length has the following properties
>
> Unit name:      code_length
>
> CGS conversion: 0.664629553446
>
> Dimensions:     (length)
>
> so I think the CGS conversion should be 1. The factor 0.6646 is close 
> to my value of h, but not exactly h. Where could things go wrong?
>
> Cheers,
> Markus




More information about the yt-users mailing list