[Yt-svn] yt: Metallicity3 needs to be divided by Density.
hg at spacepope.org
hg at spacepope.org
Thu Apr 29 09:34:54 PDT 2010
hg Repository: yt
details: yt/rev/1a91d9304a68
changeset: 1627:1a91d9304a68
user: John Wise <jwise at astro.princeton.edu>
date:
Thu Apr 29 12:34:33 2010 -0400
description:
Metallicity3 needs to be divided by Density.
diffstat:
yt/lagos/EnzoFields.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6157bd511ada -r 1a91d9304a68 yt/lagos/EnzoFields.py
--- a/yt/lagos/EnzoFields.py Thu Apr 29 09:29:38 2010 -0700
+++ b/yt/lagos/EnzoFields.py Thu Apr 29 12:34:33 2010 -0400
@@ -86,7 +86,7 @@
projection_conversion="1")
def _Metallicity3(field, data):
- return data["SN_Colour"]
+ return data["SN_Colour"]/data["Density"]
add_field("Metallicity3", units=r"Z_{\rm{\odot}}",
function=_Metallicity3,
convert_function=_ConvertMetallicity,
More information about the yt-svn
mailing list