Re: Re: HDF5 - Gadget Converter

From: brunetto <>
Date: Wed, 27 Jun 2012 12:05:17 +0200

Hi Amit,
I have some Python scripts to read the Gadget output of the Millennium-2,
base on some suggestion from Mike Boylan-Kolchin.
I used them to convert the particles positions from binaries to HDF5,
but I can't convert FOF and subhaloes.
You can find the scripts attached, may be you can fit them to your needs!
As yours, they are not perfect nor "production codes", but they work for me!

I've wrote them more than one year ago when I was a beginner with python,
so it's possible they are also not the best way to do the job.

I'd be happy if you find this scripts useful and if you want to share your code
with me!:)

On 27 June 2012 11:31, Amit Kashi <> wrote:
> Hi Brunetto,
> A colleague of mine developed a converter for me.
> It's not perfect but it does the job.
> I'd be happy to share it with you if you need it.
> What do you have?
> Amit
> On 06/27/2012 12:25 PM, brunetto wrote:
>> Hi Amit,
>> I'm quite new to Gadget too!
>> I'm sorry but I've read this mail now.
>> Did you find it? Have you developed it on your own?
>> May be I have something that can be useful.
>> Brunetto
>>> From: Amit Kashi<>
>>> Date: Fri, 04 Nov 2011 18:31:38 +0200
>>> Hello,
>>> I'm quite new to Gadget.
>>> Does anyone have an HDF5<-->  Gadget format converter which he/she be
>>> willing to share? (I hate reinventing the wheel...)
>>> Thank you in advance,
>>> Amit Kashi,
>>> Physics and Astronomy Dept.,
>>> UNLV
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> with a subject of:  unsubscribe gadget-list
> A web-archive of this mailing list is available here:

Brunetto Ziosi
PhD Student in Astronomy
Department of Physics and Astronomy
University of Padova
Vicolo dell'Osservatorio 3
35122 Padova

Received on 2012-06-27 12:05:39

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:31 CET