Data Access
Your portal to the Caterpillar data assets.
Google Cloud Platform
$ gsutil ls -l gs://caterpillarproject/halos/import subprocess
def download_caterpillar(output_dir="./",lxs=[14],snapshots=[319],want_halos=True,want_particles=False):
cmd_list = []
for lx in lxs:
for snapshot in snapshots:
if want_halos:
stdout = subprocess.check_output("gsutil ls -d gs://caterpillarproject/halos/H*/H*LX%s*/halos_bound/halos_%s/" % (lx,snapshot),shell=True).decode("utf-8")
cmd_list.extend(["gsutil cp -r %s %s/%s" % (stouti,output_dir,"/".join(stouti.split("/")[3:])) for stouti in stdout.split()])
if want_particles:
stdout = subprocess.check_output("gsutil ls -d gs://caterpillarproject/halos/H*/H*LX%s*/outputs/snapdir_%s/" % (lx,snapshot),shell=True).decode("utf-8")
cmd_list.extend(["gsutil cp -r %s %s/%s" % (stouti,output_dir,"/".join(stouti.split("/")[3:])) for stouti in stdout.split()])
for cmdi in cmd_list:
subprocess.call([cmdi],shell=True)Conventions & Structures
Halo Key
Folder Structure
Snapshot-Redshift Key
Obtaining Rockstar Halos
Snapshot Particle Data (z = 0)
Last updated
Was this helpful?