but I need only certain columns (let's say, for example, GroupPos, Group_R_Crit200 for the halos and SubhaloGrNr, SubhaloPos, SubhaloMassType, SubhaloSFR for the subhalos )
--> is there a way to download only that part of the catalogue? Or to download only the rows following, for example, the condition SubhaloSFR>0?
Thank you in advance!
Diego
Dylan Nelson
14 Sep '19
Hi Diego,
Yes you can download single fields of the group catalog, search for "subset_query" on the API docs page.
You can't selectively download rows according to a condition, but of course you can search online using the API with a condition, and then parse the results, e.g.
Hi, Dylan:
wget -nd -nc -nv -e robots=off -l 1 -r -A hdf5 --content-disposition --header="API-Key: MY_KEY" "http://www.tng-project.org/api/Illustris-3/files/groupcat-135/?format=api"
but I need only certain columns (let's say, for example, GroupPos, Group_R_Crit200 for the halos and SubhaloGrNr, SubhaloPos, SubhaloMassType, SubhaloSFR for the subhalos )
--> is there a way to download only that part of the catalogue? Or to download only the rows following, for example, the condition SubhaloSFR>0?
Thank you in advance!
Diego
Hi Diego,
Yes you can download single fields of the group catalog, search for "subset_query" on the API docs page.
For example
should work.
You can't selectively download rows according to a condition, but of course you can search online using the API with a condition, and then parse the results, e.g.
Hi, Dylan:
I have found all the details on http://www.tng-project.org/data/docs/api/ and, as you said, it works!
Thank you,
Diego