I have downloaded the Illistris-1 simulations, and the il.groupcat.loadHalos and subhalos work fine. But then when I try to load the stars of a subhalo a get the error:
OSError: Unable to open file (truncated file: eof = 283117686, sblock->base_addr = 0, stored_eof = 3188352392) i have tried with different subhalos and all give the same error.
I think there is some corrupt file. How can I fix this? Do I have to download all the data again?
Thanks,
Jorge
Dylan Nelson
25 Jun '23
You're right, it seems you only downloaded part of a file. Probably it is only an issue with one (or a few) files. You could either (i) add a print statement inside loadSubhalo() to see which, or (ii) use the python debugger (type 'u' a few types until you are inside the loadSubhalo() function, then print(fileNum), or (iii) run e.g. h5ls or h5check on the files, any with errors will show up.
Gauri Sharma
30 May
Dear Dylan,
I have downloaded, quite, many catalogs [22:],
I have similar issue as Jorge, my code breaks every now and then...
I am fine to downlod the data again could you please suggest some easy fix, its difficult to go throgh each subhalo cat :(
Dylan Nelson
30 May
You could use h5check, or just a simple python script, to verify that your HDF5 files are ok.
Dear illustris team,
I have downloaded the Illistris-1 simulations, and the il.groupcat.loadHalos and subhalos work fine. But then when I try to load the stars of a subhalo a get the error:
OSError: Unable to open file (truncated file: eof = 283117686, sblock->base_addr = 0, stored_eof = 3188352392) i have tried with different subhalos and all give the same error.
I think there is some corrupt file. How can I fix this? Do I have to download all the data again?
Thanks,
Jorge
You're right, it seems you only downloaded part of a file. Probably it is only an issue with one (or a few) files. You could either (i) add a print statement inside loadSubhalo() to see which, or (ii) use the python debugger (type 'u' a few types until you are inside the loadSubhalo() function, then
print(fileNum)
, or (iii) run e.g.h5ls
orh5check
on the files, any with errors will show up.Dear Dylan,
I have downloaded, quite, many catalogs [22:],
I have similar issue as Jorge, my code breaks every now and then...
I am fine to downlod the data again could you please suggest some easy fix, its difficult to go throgh each subhalo cat :(
You could use
h5check
, or just a simple python script, to verify that your HDF5 files are ok.