[yt-users] Normalize in BinnedProfile1D
Nicholas Earl
earlnich at msu.edu
Thu Jan 6 12:23:54 PST 2011
Perfect, thanks!
Nick
On Jan 6, 2011, at 3:13 PM, Sam Skillman wrote:
> 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
>
> _______________________________________________
> 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/f3903b2b/attachment.htm>
More information about the yt-users
mailing list