<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hi Andrew,</div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature">You should be able to use the units_override option in yt.load to force it to assign g cm**-3 to your field, I think. <br><br>-Alex<div><br></div><div><span style="background-color: rgba(255, 255, 255, 0);">---------<br>Alex Hill<br>Senior Postdoctoral Research Associate<br>Office: KINSC Link L106<br>Department of Astronomy, Haverford College<br><a dir="ltr" href="x-apple-data-detectors://6/0" x-apple-data-detectors="true" x-apple-data-detectors-type="address" x-apple-data-detectors-result="6/0">370 Lancaster Ave, Haverford, PA 19041 USA</a><br>phone: <a dir="ltr" href="tel:+1%20484%20297%202136" x-apple-data-detectors="true" x-apple-data-detectors-type="telephone" x-apple-data-detectors-result="6/1">+1 484 297 2136</a><br>email/iMessage: <a dir="ltr" href="mailto:ashill@haverford.edu" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="6/2">ashill@haverford.edu</a></span><br style="font-family: UICTFontTextStyleBody; font-size: 14px; -webkit-text-size-adjust: auto;"></div></div><div><br>On Feb 16, 2016, at 17:38, Andrew James Emerick <<a href="mailto:emerick@astro.columbia.edu">emerick@astro.columbia.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi all,<div><br></div><div>I wasn't sure if this should go in the yt-users list or Enzo-dev, as I'm not sure where the solution lies.</div><div><br></div><div>I've defined some new fields in Enzo that have units of density that yt is reading as having dimensionless units.</div><div><br></div><div>Are the units for fields defined and outputted somewhere in Enzo (to be read by yt)? Or does yt assume units depending on the name of the field? </div><div><br></div><div>If the former, where do I tell the code that my field has density units when its written to file? I see "DataUnits" throughout the code, but I'm not sure if this is relevant or how to use it.</div><div><br></div><div>If this is a yt-side thing, is there an easy way to just have yt read in my new fields with the correct units without me manually changing them once I've loaded a dataset?</div><div><br></div><div><br></div><div><br></div><div>Andrew<br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">Department of Astronomy</div></div></div>
</div>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>yt-users mailing list</span><br><span><a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a></span><br><span><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></span><br></div></blockquote></body></html>