<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi all, </span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I'm working on adding an EagleDataset to complement Hillary's recent addition of the EagleNetworkDataset.  I've been testing what I have using the recently uploaded OWLS and Eagle snapshots on the yt data site and am having trouble with the time units.  </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">As is, the code won't read non-zoom Eagle runs.  However, the problem with the time units exists in the OWLS frontend too.  The following example reads the OWLS snapshot on the yt data website and prints the current time in cgs units. </div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>import yt</div><div>yt_test_data = "/home/galtay/yt_test_data"</div></div><div style="font-family:arial,sans-serif;font-size:13px">fname_owls = yt_test_data + "/owls_snapshots/snapshot_033/snap_033.0.hdf5"<br clear="all"><div>ds_owls = yt.load( fname_owls )<br></div><div>ds_owls.current_time.in_cgs()<br></div><div><br></div><div>1.83625813382e+37 s<br></div><div><br></div><div><br></div><div>This is about 20 orders of magnitude off.  </div><div><br></div><div>In the source code for the OWLS readin (around line 316 in frontsends/sph/data_structures.py) we have </div><div><br></div><div>self.current_time = hvals[self._time_readin] * sec_conversion["Gyr"]<br></div><div><br></div><div>the first term ( hvals[self._time_readin] ) is the age of the U. in Gyr and sec_conversion['Gyr'], I assume, is the number of seconds in a Gyr.  So my question finally is, what is the proper setting for self.current_time?  </div><div><br></div><div>thanks, </div><div>-Gabriel </div></div><div><br></div>-- <br><div dir="ltr">-- <br>Gabriel Altay, PhD<br>Center for Relativistic Astrophysics<br>Georgia Institute of Technology, Physics Department<br>837 State Street, Atlanta, GA, 30332<br><div>phone: +01 404 205 9795<br>url: <a href="http://cosmo.gatech.edu/?page_id=1075" target="_blank">http://cosmo.gatech.edu/?page_id=1075</a><br></div></div>
</div>