jchelly / gadgetviewer

Simple tool for interactive visualisation of Gadget and SWIFT N-body simulations
GNU General Public License v3.0
24 stars 9 forks source link

Allow reading 6 byte particle IDs from Gadget-4 #22

Closed jchelly closed 1 year ago

jchelly commented 1 year ago

This addresses #21 and allows reading of Gadget-4 snapshots with 6 byte particle IDs.

The function hdf5_dataset_type() is modified to report integer types of size 1-4 bytes as 4 byte integers and integer types of 5-8 bytes as 8 byte integers. This should cause HDF5 to convert the data to a type we can work with.