[yt-users] What is code units? How to convert it into kps or mps

Elizabeth Tasker tasker at astro1.sci.hokudai.ac.jp
Wed Jun 11 01:17:20 PDT 2014


Hi Reju,

Code units are the units that are used within the simulation. If you’re running a cosmological model, then these units are specified via the choice “G = 1”.

To convert to something more digestible, I believe you can do:

vr/pf.units[“mpc”]

or whatever unit you’d like, if not megaparsecs. 

Elizabeth

On Jun 11, 2014, at 5:11 PM, Reju Sam John <rejusamjohn at gmail.com> wrote:

> Dear all,
> 
> >>>  vr = halo[i].virial_radius(virial_overdensity=200.0, bins=100)
> 
> will return the virial radius of the halo in code units.
> 
> What is code units? How to convert it into kps or mps?
> -- 
> Reju Sam John
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org




More information about the yt-users mailing list