No halo catalogue found for GADGET2 snapshot

6 views
Skip to first unread message

Eric Tang

unread,
May 7, 2025, 7:54:47 PMMay 7
to pynbody-users
Dear All,

My n-body simulation results are phase-space of disk/bulge/halo as follows plus masses for each particle types:

 type: 0 = gal1 halo  1 = gal1 bulge  2 = gal1 disk

 type: 3 = gal2 halo  4 = gal2 bulge, 5 = gal2 disk

 particles type, x[kpc], y[kpc], z[kpc],vx[km/s], vy[km/s], vz[km/s]

 TIMESTEP =    0.00000000

0,     -5.29833,    -31.17922,     16.55958,   -100.41090,      4.48718,   -175.37633


I converted them to Gadget2 snapshot and pynbody loads that OK and is able to identify families of particles:

[<Family dm>, <Family star>]

40000

20100


The problem is halo catalogue which pynbody cannot find:
h = f.halos(priority = ['HaloNumberCatalogue'])

RuntimeError: No halo catalogue found 


How to fix this for further analysis using pynbody?

Regards,
Eric

PONTZEN, ANDREW P.

unread,
May 12, 2025, 6:03:34 AMMay 12
to pynbody-users
What result were you expecting? This sounds like an isolated simulation, so there is no way in which you would have a halo catalogue available as far as I can tell.  If you do somehow have halo IDs stored in a number array (as suggested by your code), you may wish to pass the name of the array (something like f.halos(array='name_of_array') ) to help pynbody find it.



--
You received this message because you are subscribed to the Google Groups "pynbody-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pynbody-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pynbody-users/033fdd15-d4f2-4ee7-a3f8-173e1887c539n%40googlegroups.com.

Eric Tang

unread,
May 13, 2025, 7:18:14 AMMay 13
to pynbody-users
Hi Andrew,

I would like to have a halo with particles of family <star> for pynbody.analysis. I'll try that. Thanks.

Regards,
Eric

Andrew Pontzen

unread,
May 29, 2025, 7:27:22 AMMay 29
to pynbody-users
Just pass f.star to whatever routine within pynbody.analysis you are using, this should work fine! All the best, Andrew

Eric Tang

unread,
Jun 1, 2025, 10:01:01 PMJun 1
to Andrew Pontzen, pynbody-users
Hi Andrew,

Noted with thanks. That works.

Regards,
Eric
Sent from my iPhone

On 29 May 2025, at 21:27, Andrew Pontzen <andrew.p...@durham.ac.uk> wrote:

Just pass f.star to whatever routine within pynbody.analysis you are using, this should work fine! All the best, Andrew
You received this message because you are subscribed to a topic in the Google Groups "pynbody-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pynbody-users/n0Co8AVnbAA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pynbody-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pynbody-users/b81bf8c9-500b-4d7b-9956-c7d6d4a8f909n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages