Closed sandhya0892 closed 3 years ago
Hi John, I am sorry to disturb. Was it possible for you to locate the script that you had mentioned? Could you please send it whenever it is convenient for you?
Thanks and regards, Sandhya
Hi @sandhya0892,
I can locate the script today, unfortunately I wasn't able to find time to do it over the long weekend. I'm back in the office today and I can do it in the afternoon.
Thanks a lot! -Sandhya
Hi @sandhya0892,
Here is an example script which downloads a halo from the TNG project and then adds the necessary header info to the file so you can load it in yt. Note that you will need to install yt-4.0 to read Arepo data. You will have to install yt from source from GitHub and switch to the yt-4.0
branch.
Thanks a lot, John for the script.
-Sandhya
Closing this because yt now natively supports TNG data.
Hi John, I am trying to create mock X-ray observations of galaxy clusters and to this end, I have used IllustrisTNG simulations to extract galaxy cluster information. I began with creating mock X-ray observation of one particular cluster. I am using yt.create_uniform_grid to create a yt dataset consisting of density and temperature values. However, I am having issues with creating the box as the density and temperature is a one-dimensional array with N values where N is the number of cells.
How do I create a yt dataset from the IllustrisTNG data? Thank you.