Truncation error when reading subhalos data

Marta Barroso
  • 15 Jan

Hi Dylan,

I'm retrieving subhalos data using the illustris_python library, in particular for snapnum=84. Previously, I downloaded the hdf5 files so I have groups_84 and snapdir_84 folders properly set.

However, I'm facing an issue when getting data for the following [(halo_id, GroupFirstSub]:
[(5, 578), (6, 663), (7, 762), (8, 840), (9, 896), (10, 979), (18, 1482), (19, 1553), (20, 1600), (21, 1644), (22, 1693), (23, 1741), (24, 1802), (25, 1852), (26, 1899)]

When calling:
star_p = il.snapshot.loadSubhalo(path, 84, subhalo_id, "star", fields=["Coordinates", "Velocities", "Masses"])

I get:
Unable to open file (truncated file: eof = 424745959, sblock->base_addr = 0, stored_eof = 751952088)

I tried to redownload the files but nothing changes, is there any steps that I could follow to solve this ?

Thanks,
Marta

Dylan Nelson
  • 15 Jan

I'm sure it is a corrupted/incomplete download.

It should say the exact file where the problem is, you can download it again.

Alternatively, you can think about using the online Lab service, perhaps it saves you from needing to download this in the first place?

Marta Barroso
  • 16 Jan

Thanks for your response Dylan. I downloaded the dataset again. It seems that the problem was when we were transfering the data to our server (with no internet connection). The error is not appearing anymore.

  • Page 1 of 1