<div dir="ltr">Hi,<div><br></div><div>according to</div><div><a href="http://yt-project.org/docs/2.6/analyzing/creating_derived_fields.html">http://yt-project.org/docs/2.6/analyzing/creating_derived_fields.html</a>?<br></div>
<div><br></div><div>what worked for me for enzo data is the following</div><div><br></div><div><div>def _HINeutralFraction(field, data):</div><div>    return data['HI_Density']/(data['HI_Density']+data['HII_Density'])</div>
<div><br></div><div>add_field('HINeutralFraction',function=_HINeutralFraction,</div><div>          units=r"\rho_\mathrm{HI}/\rho_\mathrm{H}")</div></div><div><br></div><div>unless there's something strange with ramses dataset, the above should work.</div>
<div><br></div><div>From</div><div>G.S.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 10:12 AM, Professor Maller <span dir="ltr"><<a href="mailto:amaller@citytech.cuny.edu" target="_blank">amaller@citytech.cuny.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Does anyone have code to create derived fields of ionization states, e.g. HI, for ramses data sets?  If that's a no, does anyone have an example of a derived field where you have to read in a table and interpolate the field values.</div>

<div><br>Thanks,</div><div><br>Ari</div></div>
<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>
<br></blockquote></div><br></div>