[yt-users] Normalize in BinnedProfile1D

Sam Skillman samskillman at gmail.com
Thu Jan 6 12:13:43 PST 2011


Hi Nick,

You should be able to use the fractional=True keyword when you add fields:

BinnedProfile1D.add_fields(self, fields, weight='CellMassMsun',
accumulation=False, fractional=False)

Sam

On Thu, Jan 6, 2011 at 1:09 PM, Nicholas Earl <earlnich at msu.edu> wrote:

> Hey there,
>
> Is there perhaps a quick way to normalize the output of the BinnedProfile1D
> function? I have this:
>
> pf = load("DD%04i/DD%04i" % (n,n)) # opens and loads dataset
>        dd = pf.h.all_data()  # selects the entire dataset (for phase plots)
>        bp = BinnedProfile1D(dd, 100, "Metal_Fraction", 1e-11, 1e-3,
> log_space=True)
>
> Is there something like a 'normed=True' parameter?
>
> Thanks!
> Nick
> _______________________________________________
> yt-users mailing list
> yt-users at 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/20110106/76e73a13/attachment.html>


More information about the yt-users mailing list