Hi Matt,<br><br>This may also be not what you're looking for, but I will throw it out there.  With the halo profiler, you can read in a list of halo positions and get back a sphere object for each halo.  This is clearly not the same as getting the halo object, but depending on what you're looking to do, it may be good enough.  In the HaloProfiler docs, there is a section near the end that discusses this, using a HaloProfiler method called analyze_halo_sphere.<br>
<br>Britton<br><br><div class="gmail_quote">On Mon, Jul 9, 2012 at 9:57 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Geoffrey,<br>
<br>
This is nearly what I'm looking for, but not quite.  I have halos that<br>
were generated outside of yt, so they are not in the format.  Is there<br>
either a simpler way of loading them in and getting halo objects, or a<br>
standard file format that I could subscribe to?<br>
<br>
Better yet, do we have a way of yielding halo data to get halos back?<br>
i.e., something like numpy's "fromiter" function?<br>
<br>
Thanks!<br>
<br>
-Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Jul 9, 2012 at 2:20 AM, Geoffrey So <<a href="mailto:gsiisg@gmail.com">gsiisg@gmail.com</a>> wrote:<br>
> I thought (correct me if I'm wrong Stephen), that if you didn't save the<br>
> halo objects with the call in the halo finder<br>
> halo_list.dump(HaloListname)<br>
> They are lost and not saved, so to save the haloes for access later in .h5<br>
> files, that previous .dump() command must be called.<br>
> If they were saved (check for .h5 files), you should be able to load the<br>
> haloes with<br>
> haloes = LoadHaloes(pf, HaloListname)<br>
><br>
> From<br>
> G.S.<br>
><br>
> On Sun, Jul 8, 2012 at 6:28 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> If I have a list of halo locations and radii, what is the best way to<br>
>> load that into yt?  Specifically, to get back a set of halo objects?<br>
>><br>
>> Thanks,<br>
>><br>
>> Matt<br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br>