I want to "follow the magnetic field evolution" (as well as other plasma parameters) of a galaxy cluster, ideally with a mass greater than 10^14 Msol. I first wrote a code to target a cluster in the catalog and then extract sub-halo indices from its merger tree. Then I want to extract the magnetic field data (and other parameters) of the corresponding sub-halos.
However, every time I try to extract such data, I get an error message telling me that they don't exist, especially the magnetic field (other data are available, such as temperature and star formation rate).
In addition, the limited 10Gb cache memory in the Jupyter workspace doesn't allow me to extract all the required data.
The MagneticField is stored only for full snapshots (see the related column in the documentation for PartType0 fields). So you should loop only over full snapshots if you want to load this field.
Loading these two fields for a single subhalo shouldn't be a problem, even for a big cluster. You will eventually run out of memory, if you don't let it be freed as you loop. That is, for each snapshot you should probably calculate what you want, then delete/reuse "halo_snap". You may also want to load just the Coordinates, do what you want with them, and then load the MagneticField, reducing peak memory usage by ~2x.
Hello,
I want to "follow the magnetic field evolution" (as well as other plasma parameters) of a galaxy cluster, ideally with a mass greater than 10^14 Msol. I first wrote a code to target a cluster in the catalog and then extract sub-halo indices from its merger tree. Then I want to extract the magnetic field data (and other parameters) of the corresponding sub-halos.
However, every time I try to extract such data, I get an error message telling me that they don't exist, especially the magnetic field (other data are available, such as temperature and star formation rate).
In addition, the limited 10Gb cache memory in the Jupyter workspace doesn't allow me to extract all the required data.
Any help would be precious!
Thanks in advance!
My (short) code looks like that:
The
MagneticField
is stored only for full snapshots (see the related column in the documentation for PartType0 fields). So you should loop only over full snapshots if you want to load this field.Loading these two fields for a single subhalo shouldn't be a problem, even for a big cluster. You will eventually run out of memory, if you don't let it be freed as you loop. That is, for each snapshot you should probably calculate what you want, then delete/reuse "halo_snap". You may also want to load just the Coordinates, do what you want with them, and then load the MagneticField, reducing peak memory usage by ~2x.