Hello, was going through the Illustris script tutorial, and performed all the steps exactly as listed. I get an error on this line:
subhalos = il.groupcat.loadSubhalos(basePath,135,fields=fields)
It is as follows:
OSError: Unable to open file (unable to open file: name = './Illustris-3/output//groups_135/fof_subhalo_tab_135.1.hdf5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
So, I looked into the folder where the files that were downloaded using wget went (groups_135) and, of course, I found that the above file 'fof_subhalo_tab_135.1.hdf5' does not exist; only 'groupcat-135.1.hdf5' and 'groups_135.0.hdf5' are available. I also looked into the snapshot for Illustris 3 itself and found indeed only these two files exist. So my question is, is it possible that some naming scheme changed which causes the script listed to look for the wrong file, or am I supposed to download it separately?
If you look at the top of the groupcat.py file, you can see the search is quite simple. First it looks for something like groups_135.0.hdf5, and if this isn't found, then it looks for something like fof_subhalo_tab_135.0.hdf5.
It seems you are missing the second chunk (fof_subhalo_tab_135.1.hdf5) or else have the wrong path?
Okay I see that line in the code. *I think, then, that it wants the groups-135.1.hdf5 file, but the only file that's located in the folder with a 1 after the 135 is the groupcat file, groupcat-135.1.hdf5 (which I downloaded with wget). I did try downloading again, and got the file groupcat-135.0.hdf5, which was not there before, but for some reason no matter what I do, I cannot get the groups-135.1.hdf5 file! I looked directly into the snapshot by going to the Illustris-3 link (in the list of resolutions), and went own to snapshot 135, and in the group catalog the file doesn't exist. I tried using wget several times thnking maybe it skipped it, but it looks like that's not the case. Can I just download the specific file on my own??
If you run the wget command in the tutorial:
wget -nd -nc -nv -e robots=off -l 1 -r -A hdf5 --content-disposition --header="API-Key: KEY_HERE" "http://www.tng-project.org/api/Illustris-3/files/groupcat-135/?format=api"
it will download two files and name them groups_135.0.hdf5 and groups_135.1.hdf5.
Or you can just download by clicking on the two links.
If they have the wrong name for some reason, you can rename them.