IRATE-format / docs / scripts.rst

Command Line Scripts and Conversion Tools

One of the main intents of the IRATE format is to unify the variety of formats currently used for simulations into a standard format that many tools can access efficiently. Hence, the IRATE package provides a number of conversion tools from various formats

Show IRATE/HD5 File Structure

The printhdf5 script prints out the format (e.g. The names of all the groups and datasets, and optionally artibutes) of the supplied HDF5 file. It can also be used to check whether or not an HDF5 file conforms to the IRATE format. Use it as printhdf5 [options] filename.

Options:

Tipsy Binary -> IRATE

The tipsy2irate script converts files in the tipsy binary format to IRATE. Use it as tipsy2irate [options] infile [outfile]. If outfile is not specified, it will be the same as infile with '.h5' added.

Options:

add options

Gadget Binary -> IRATE

The gb2irate script converts files in the Gadget binary format to IRATE. Use it as gb2irate input-file [output-file] [options]. If outfile is not specified, it will be the same as infile with '-irate.hdf5' added.

Options:

Gadget HDF5 -> IRATE

The gb2irate script converts files in the Gadget HDF5 format to IRATE. Use it as gh52irate input-file [output-file] [options]. If outfile is not specified, it will be the same as infile with '-irate.hdf5' added.

Options:

EnBiD -> IRATE

The enbid2irate script adds the data from files produced by EnBiD in the GADGET format to existing IRATE files. Use it as enbid2irate enbid-file irate-file [output-file] [options]. If outfile is not specified, it defaults to irate-file with '-wenbid.hdf5' added. enbid-file should be a binary file as produced by EnBiD, and irate-file should be an existing IRATE file. All data is saved under /Analysis

Options:

Gadget Binary + EnBiD -> IRATE

The gb2-enbid2irate script combines the gb2irate and enbid2irate scripts into one step. Use it as gb-enbid2irate gadget-file enbid-file [output-file] [options]. If outfile isn't specified, it defaults to gadget-file with '-enbid-irate.hdf5' added. Takes the same options as gb2irate.

AHF ASCII -> IRATE

The ahf2irate script converts files in the AHF ASCII format to IRATE. Use it as ahf2irate input-file-base [output-file] [options]. The input file base should be provided as *.AHF_; i.e. everything up to the "halos" or "particles" or "profiles" part of the filename. If output-file isn't given, it defaults to the input file base with "irate.hdf5" added.

Options:

AHF Particles -> IRATE

The ahfparticles2irate script reads an AHF _particles file, saves it to an HDF5 file, then links the resulting datasets to an existing IRATE catalog file. Use it as ahfparticles2irate particle-file irate-file [output-file] [options]. If output-file isn't specified, it defaults to irate-file + '-particles.hdf5'.

Options:

Rockstar -> IRATE

The rockstar2irate script converts Rockstar halo catalogs to IRATE catalog files. Use it as rockstar2irate input-file [output-file] [format] [options]. If output-file isn't specified, it defaults to input-file with '-irate.hdf5' added.

Options:

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.