[yt-users] time conversion

Matthew Turk matthewturk at gmail.com
Wed Jun 17 21:15:10 PDT 2009


Hi Stephen,

The code Britton mentioned is definitely the best (/only) way to get
from creation_time to redshift.  For conversion to years or seconds,
you can also use the conversion units in the parameter file of
"years", "days" and "Time" which do years, days and time:

creation_time_years = data["creation_time"] * data["years"]

But this only does raw time -- no z calculations.

-Matt

On Wed, Jun 17, 2009 at 5:32 PM, Stephen Skory<stephenskory at yahoo.com> wrote:
>
>
>
>> Is there a built-in way to convert times in yt? Specifically, convert the code
>> 'creation_time' to physical time?
>
> Or even better 'creation_time' -> redshift...
>
> Thanks!
>
>  _______________________________________________________
> sskory at physics.ucsd.edu           o__  Stephen Skory
> http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student
> ________________________________(_)_\(_)_______________
> _______________________________________________
> 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