[yt-users] halo-data-access

Matthew Turk matthewturk at gmail.com
Mon Mar 1 15:29:29 PST 2010


Hi Shankar,

It works on the individual halos.

You could do this with: halos[0].write_particle_list ... or you could do:

for i,halo in enumerate(halos):
    halo.write_particle_list("halo_%08i.dat" % i)

-Matt

On Mon, Mar 1, 2010 at 3:21 PM, Agarwal, Shankar <sagarwal at ku.edu> wrote:
> Hi,
>
> http://yt.enzotools.org/doc/extensions/running_halofinder.html#halo-data-access
>
>
> I get the following error while trying to access halos...
>
> halos.write_particle_list("Hop_particle_list.dat")
> AttributeError: 'HOPHaloFinder' object has no attribute 'write_particle_list'
>
>
> Shankar
>
>
> -----Original Message-----
> From: yt-users-bounces at lists.spacepope.org on behalf of Stephen Skory
> Sent: Sun 2/28/2010 1:51 PM
> To: Discussion of the yt analysis package
> Subject: Re: [yt-users] Dealing with HOP groups
>
> All,
>
>>3.  Write a dark matter particle profiler that uses the particle positions (and not grid cells) to bin up the profile.  Little computational cost but requires coding on your part.
>
>
> This is already in yt, as of 1.6, see .virial_mass() or .virial_radius():
>
> http://yt.enzotools.org/doc/extensions/running_halofinder.html#halo-data-access
>
>  _______________________________________________________
> sskory at physics.ucsd.edu           o__  Stephen Skory
> http://physics.ucsd.edu/~sskory/ _.>/ _Graduate Student
> ________________________________(_)_\(_)_______________
>
> _______________________________________________
> 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
>
>



More information about the yt-users mailing list