[yt-users] Bin 1D spherically averaged profiles uniformly on log radius
Suoqing Ji
suoqing at physics.ucsb.edu
Thu Nov 24 16:16:49 PST 2016
Hi Marco,
Sorry that I do not understand what you mean by saying “does not bin the data uniformly in log radius”... In ProfilePlot you can set x_log=True to get a log bin in radius (http://yt-project.org/docs/dev/reference/api/generated/yt.visualization.profile_plotter.ProfilePlot.html#yt.visualization.profile_plotter.ProfilePlot <http://yt-project.org/docs/dev/reference/api/generated/yt.visualization.profile_plotter.ProfilePlot.html#yt.visualization.profile_plotter.ProfilePlot>), and np.logspace will be called to get a log bin uniformly.
Do you want something other than that?
Best wishes,
--
Suoqing JI
Ph.D Candidate
Department of Physics
University of California, Santa Barbara
http://web.physics.ucsb.edu/~suoqing
> On Nov 24, 2016, at 3:39 PM, Marco Surace <marco.surace at port.ac.uk> wrote:
>
> Hi all,
>
> I have been using yt.ProfilePlot to create 1D spherically averaged profiles of say the gas temperature in a simulation as a function of radius, starting from the centre of a halo out to a given radius.
>
> Does anyone know how I can bin the data uniformly in log radius? This would improve the resolution at smaller radii. It currently does not bin the data uniformly in linear or log radius. I haven't found an option with ProfilePlot for affecting the binning.
>
> Best wishes,
> Marco
> _______________________________________________
> 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/20161124/cdc073a2/attachment.html>
More information about the yt-users
mailing list