Hi Stephen,<br><br>A while ago I implemented a couple things that I think are just what you need.  The module, yt.lagos.EnzoCosmology, features conversions from redshift to time after big bang and vice-versa.  To use it, you just need to instantiate an EnzoCosmology object with keyword args for the cosmological parameters.  Then you have access to the ComputeRedshiftFromTime and ComputeTimeFromRedshift methods as well as the TimeUnits attribute, which gives you the conversion from code units into seconds (I think).  All of these routines were essentially ripped straight from enzo and ported into python.<br>
<br>For more general cosmological calculations, there is yt.lagos.Cosmology, which works the exact same way, but has methods for, comoving radial distance, luminosity distance, etc.  It uses a series approximation for the integration, so the results cannot be trusted for extremely high redshifts, like 1000 or so.<br>
<br>Britton<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 6:32 PM, Stephen Skory <span dir="ltr"><<a href="mailto:stephenskory@yahoo.com">stephenskory@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
<br>
<br>
> Is there a built-in way to convert times in yt? Specifically, convert the code<br>
> 'creation_time' to physical time?<br>
<br>
</div>Or even better 'creation_time' -> redshift...<br>
<div><div></div><div class="h5"><br>
Thanks!<br>
<br>
 _______________________________________________________<br>
<a href="mailto:sskory@physics.ucsd.edu">sskory@physics.ucsd.edu</a>           o__  Stephen Skory<br>
<a href="http://physics.ucsd.edu/%7Esskory/" target="_blank">http://physics.ucsd.edu/~sskory/</a> _.>/ _Graduate Student<br>
________________________________(_)_\(_)_______________<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br>