Re: [yt-users] yt-users Digest, Vol 78, Issue 38

Hi Matt,
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?
Thanks,
Ari
On Thu, Aug 14, 2014 at 1:54 PM, yt-users-request@lists.spacepope.org wrote:
Send yt-users mailing list submissions to yt-users@lists.spacepope.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org or, via email, send a message with subject or body 'help' to yt-users-request@lists.spacepope.org
You can reach the person managing the list at yt-users-owner@lists.spacepope.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of yt-users digest..."
Today's Topics:
- ionization states in ramses data sets (Professor Maller)
- Re: ionization states in ramses data sets (Geoffrey So)
- Re: ionization states in ramses data sets (Matthew Turk)
Message: 1 Date: Thu, 14 Aug 2014 13:12:11 -0400 From: Professor Maller amaller@citytech.cuny.edu To: yt-users@lists.spacepope.org Subject: [yt-users] ionization states in ramses data sets Message-ID: < CACCSjdOxDp+Mmgae1XLYJJvC7vJn52Xu59ppUA+p0mq7Fggz8A@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
Hi,
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.
Thanks,
Ari -------------- next part -------------- An HTML attachment was scrubbed... URL: < http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/2014...
Message: 2 Date: Thu, 14 Aug 2014 10:19:49 -0700 From: Geoffrey So gsiisg@gmail.com To: Discussion of the yt analysis package yt-users@lists.spacepope.org Subject: Re: [yt-users] ionization states in ramses data sets Message-ID: < CAM-dO+DM+ygbGg3GG9vrxjSn+JM9mGGgHDXA1UEJu1KYpnJJqw@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
Hi,
according to http://yt-project.org/docs/2.6/analyzing/creating_derived_fields.html?
what worked for me for enzo data is the following
def _HINeutralFraction(field, data): return data['HI_Density']/(data['HI_Density']+data['HII_Density'])
add_field('HINeutralFraction',function=_HINeutralFraction, units=r"\rho_\mathrm{HI}/\rho_\mathrm{H}")
unless there's something strange with ramses dataset, the above should work.
From G.S.
On Thu, Aug 14, 2014 at 10:12 AM, Professor Maller < amaller@citytech.cuny.edu> wrote:
Hi,
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.
Thanks,
Ari
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-------------- next part -------------- An HTML attachment was scrubbed... URL: < http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/2014...
Message: 3 Date: Thu, 14 Aug 2014 12:22:16 -0500 From: Matthew Turk matthewturk@gmail.com To: Discussion of the yt analysis package yt-users@lists.spacepope.org Subject: Re: [yt-users] ionization states in ramses data sets Message-ID: <CALO3= 5HE+5eFNfXaWqJ_ApFCZeE_Sy73EEj+O5y7CuqMiVQ9sQ@mail.gmail.com> Content-Type: text/plain; charset=UTF-8
Hi Ari,
My reading of yt/frontends/ramses/fields.py is that this should be implemented already, using the cooling_%05i.dat files. If it's able to find those files, it will create the appropriate derived fields from them -- specifically, I think it can do Electron, HI, HII, HeI, HeII, and HeIII. Is it not creating those?
On Thu, Aug 14, 2014 at 12:12 PM, Professor Maller amaller@citytech.cuny.edu wrote:
Hi,
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.
Thanks,
Ari
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
Subject: Digest Footer
yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
End of yt-users Digest, Vol 78, Issue 38

Hi Ari,
Looks to me like it may actually not be enabled by default for some reason. Can you try calling:
ds.field_info.create_cooling_fields("")
and seeing if that adds the correct fields? If so, I'll update the code to do this automatically.
-Matt
On Thu, Aug 14, 2014 at 1:56 PM, Professor Maller amaller@citytech.cuny.edu wrote:
Hi Matt,
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?
Thanks,
Ari
On Thu, Aug 14, 2014 at 1:54 PM, yt-users-request@lists.spacepope.org wrote:
Send yt-users mailing list submissions to yt-users@lists.spacepope.org
To subscribe or unsubscribe via the World Wide Web, visit http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org or, via email, send a message with subject or body 'help' to yt-users-request@lists.spacepope.org
You can reach the person managing the list at yt-users-owner@lists.spacepope.org
When replying, please edit your Subject line so it is more specific than "Re: Contents of yt-users digest..."
Today's Topics:
- ionization states in ramses data sets (Professor Maller)
- Re: ionization states in ramses data sets (Geoffrey So)
- Re: ionization states in ramses data sets (Matthew Turk)
Message: 1 Date: Thu, 14 Aug 2014 13:12:11 -0400 From: Professor Maller amaller@citytech.cuny.edu To: yt-users@lists.spacepope.org Subject: [yt-users] ionization states in ramses data sets Message-ID:
CACCSjdOxDp+Mmgae1XLYJJvC7vJn52Xu59ppUA+p0mq7Fggz8A@mail.gmail.com Content-Type: text/plain; charset="utf-8"
Hi,
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.
Thanks,
Ari
participants (2)
-
Matthew Turk
-
Professor Maller