GFM_StellarPhotometrics in Subbox snapshots

Chris Mihos

I'm having trouble downloading Stellar_Photometrics for snapshots in TNG50-1 Subbox2. Do they not exist for the Subbox snapshots? The "Data Specifications" page says they do (at least if I'm reading that page correctly!) but when I try to download them like this:

file_url="http://www.tng-project.org/api/TNG50-1-Subbox2/files/snapshot-3599.0.hdf5"
params = {'stars':'Coordinates,GFM_StellarPhotometrics'}
saved_filename = get(file_url, params)

I get the following error:

HTTPError: 400 Client Error: Bad Request for url: https://www.tng-project.org/api/TNG50-1-Subbox2/files/snapshot-3599.0.hdf5?stars=Coordinates%2CGFM_StellarPhotometrics

If I don't ask for GFM_StellarPhotometrics, the snapshot downloads fine, and if I ask for GFM_StellarPhotometrics for one of the main TNG-50-1 snapshots (i.e., not the Subbox) it comes down fine as well.

Am I doing something dumb, or is that data not available for the Subboxes?

Dylan Nelson
  • 7 Mar

This field definitely exists for the subboxes, but you're right, it looks like such a "cutout query" for a particle set of particle types/particle fields is not working for a subbox. I will look further.

Chris Mihos
  • 7 Mar

Thanks, Dylan, I appreciate it!

Dylan Nelson
  • 7 Mar

Should be all fixed (the cutout requests were not aware of the specific fields available in subboxes).

Chris Mihos
  • 7 Mar

Perfect, it's working for me now. Thanks so much!

  • Page 1 of 1