<div dir="ltr"><div><div>Hi everyone.<br><br></div>I'm currently working on making temperature and density profiles from some ramses simulations.<br></div><div>I'd like to make these profiles the average radial profile of the halos in the simulation.<br><br></div><div>I think the included rockstar in yt supports this in some form, but my halo catalog is made using AHF and then imported from an ascii file.<br></div><div><br></div><div>To do this I need help with two things:<br></div><div>The first one is how to scale the radius of each profile to the corresponding virial radius.<br></div><div>The other is how to actually average all these profiles.<br><br>Is this something that can be done?<br><br></div><div>I will be trying to compare the resulting profile with the same for different simulations in the end, but I don't expect to have any big problems with that.<br><br></div><div>The code I'm currently using for this can be found at <br><a href="http://paste.yt-project.org/show/7058/">http://paste.yt-project.org/show/7058/</a><br></div><div><br></div><div>Best,<br></div><div>Andreas Ellewsen<br></div></div>