<div dir="ltr">Hi Matt,<div><br></div><div>Those fields are not in my derived field list. That is ds.derived_field_list. Do I have to add them in some way? Or is there a way to check if yt didn't find the cooling??.dat files?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>Ari</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 14, 2014 at 1:54 PM,  <span dir="ltr"><<a href="mailto:yt-users-request@lists.spacepope.org" target="_blank">yt-users-request@lists.spacepope.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send yt-users mailing list submissions to<br>
        <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<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>
or, via email, send a message with subject or body 'help' to<br>
        <a href="mailto:yt-users-request@lists.spacepope.org">yt-users-request@lists.spacepope.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:yt-users-owner@lists.spacepope.org">yt-users-owner@lists.spacepope.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of yt-users digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
   1. ionization states in ramses data sets (Professor Maller)<br>
   2. Re: ionization states in ramses data sets (Geoffrey So)<br>
   3. Re: ionization states in ramses data sets (Matthew Turk)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 14 Aug 2014 13:12:11 -0400<br>
From: Professor Maller <<a href="mailto:amaller@citytech.cuny.edu">amaller@citytech.cuny.edu</a>><br>
To: <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
Subject: [yt-users] ionization states in ramses data sets<br>
Message-ID:<br>
        <<a href="mailto:CACCSjdOxDp%2BMmgae1XLYJJvC7vJn52Xu59ppUA%2Bp0mq7Fggz8A@mail.gmail.com">CACCSjdOxDp+Mmgae1XLYJJvC7vJn52Xu59ppUA+p0mq7Fggz8A@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi,<br>
<br>
Does anyone have code to create derived fields of ionization states, e.g.<br>
HI, for ramses data sets?  If that's a no, does anyone have an example of a<br>
derived field where you have to read in a table and interpolate the field<br>
values.<br>
<br>
Thanks,<br>
<br>
Ari<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140814/6c53560d/attachment.html" target="_blank">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140814/6c53560d/attachment.html</a>><br>

<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Thu, 14 Aug 2014 10:19:49 -0700<br>
From: Geoffrey So <<a href="mailto:gsiisg@gmail.com">gsiisg@gmail.com</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] ionization states in ramses data sets<br>
Message-ID:<br>
        <<a href="mailto:CAM-dO%2BDM%2BygbGg3GG9vrxjSn%2BJM9mGGgHDXA1UEJu1KYpnJJqw@mail.gmail.com">CAM-dO+DM+ygbGg3GG9vrxjSn+JM9mGGgHDXA1UEJu1KYpnJJqw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi,<br>
<br>
according to<br>
<a href="http://yt-project.org/docs/2.6/analyzing/creating_derived_fields.html" target="_blank">http://yt-project.org/docs/2.6/analyzing/creating_derived_fields.html</a>?<br>
<br>
what worked for me for enzo data is the following<br>
<br>
def _HINeutralFraction(field, data):<br>
    return data['HI_Density']/(data['HI_Density']+data['HII_Density'])<br>
<br>
add_field('HINeutralFraction',function=_HINeutralFraction,<br>
          units=r"\rho_\mathrm{HI}/\rho_\mathrm{H}")<br>
<br>
unless there's something strange with ramses dataset, the above should work.<br>
<br>
From<br>
G.S.<br>
<br>
<br>
On Thu, Aug 14, 2014 at 10:12 AM, Professor Maller <<br>
<a href="mailto:amaller@citytech.cuny.edu">amaller@citytech.cuny.edu</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> Does anyone have code to create derived fields of ionization states, e.g.<br>
> HI, for ramses data sets?  If that's a no, does anyone have an example of a<br>
> derived field where you have to read in a table and interpolate the field<br>
> values.<br>
><br>
> Thanks,<br>
><br>
> Ari<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>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140814/14caf322/attachment-0001.htm" target="_blank">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140814/14caf322/attachment-0001.htm</a>><br>

<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Thu, 14 Aug 2014 12:22:16 -0500<br>
From: Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>><br>
To: Discussion of the yt analysis package<br>
        <<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>><br>
Subject: Re: [yt-users] ionization states in ramses data sets<br>
Message-ID:<br>
        <CALO3=<a href="mailto:5HE%2B5eFNfXaWqJ_ApFCZeE_Sy73EEj%2BO5y7CuqMiVQ9sQ@mail.gmail.com">5HE+5eFNfXaWqJ_ApFCZeE_Sy73EEj+O5y7CuqMiVQ9sQ@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hi Ari,<br>
<br>
My reading of yt/frontends/ramses/fields.py is that this should be<br>
implemented already, using the cooling_%05i.dat files.  If it's able<br>
to find those files, it will create the appropriate derived fields<br>
from them -- specifically, I think it can do Electron, HI, HII, HeI,<br>
HeII, and HeIII.  Is it not creating those?<br>
<br>
On Thu, Aug 14, 2014 at 12:12 PM, Professor Maller<br>
<<a href="mailto:amaller@citytech.cuny.edu">amaller@citytech.cuny.edu</a>> wrote:<br>
> Hi,<br>
><br>
> Does anyone have code to create derived fields of ionization states, e.g.<br>
> HI, for ramses data sets?  If that's a no, does anyone have an example of a<br>
> derived field where you have to read in a table and interpolate the field<br>
> values.<br>
><br>
> Thanks,<br>
><br>
> Ari<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>
><br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<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>
<br>
<br>
------------------------------<br>
<br>
End of yt-users Digest, Vol 78, Issue 38<br>
****************************************<br>
</blockquote></div><br></div>