Does yt fully support eagle and illustris data?

I just want to use yt to make a sliceplot of eagle data. ds = yt.load('/scratch/eagle/AGNdT9L0050N0752/snapshot_015_z002p012/snap_015_z002p012.0.hdf5') slc = yt.SlicePlot(ds, "z", ['density', 'temperature', 'xray_emissivity']) yt : [INFO ] 2018-09-02 10:17:48,333 Allocating for 8.505e+08 particles (index particle type 'all') yt : [INFO ] 2018-09-02 10:24:50,335 Identified 5.640e+07 octs yt : [INFO ] 2018-09-02 10:26:12,532 Attempting to download ~ 30 Mb of owls ion data from http://yt-project.org/data to ./. Downloading owls_ion_data.tar.gz to . : 33%|?.. | 1/3 [00:05<00:10, 0.18iDownloading owls_ion_data.tar.gz to . : 67%|?..?.. | 2/3 [00:09<00:05, 0Downloading owls_ion_data.tar.gz to . : 100%|?..?..?. 3/3 [00:12<00:00, Downloading owls_ion_data.tar.gz to . : 4it [00:13, 1.76it/s] yt : [INFO ] 2018-09-02 10:49:20,110 xlim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,111 ylim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,113 xlim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,113 ylim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,145 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800 yt : [INFO ] 2018-09-02 10:49:20,149 Making a fixed resolution buffer of (('gas', 'temperature')) 800 by 800 yt : [INFO ] 2018-09-02 10:49:20,151 Making a fixed resolution buffer of (('gas', 'xray_emissivity')) 800 by 800 yt : [WARNING ] 2018-09-02 10:49:20,163 Plot image for field ('gas', 'temperature') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:20,163 Switching to linear colorbar scaling. yt : [WARNING ] 2018-09-02 10:49:22,956 Plot image for field ('gas', 'density') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:22,957 Switching to linear colorbar scaling. yt : [WARNING ] 2018-09-02 10:49:23,598 Plot image for field ('gas', 'xray_emissivity') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:23,598 Switching to linear colorbar scaling. I get nothing in the figure. What's the matter?

Do all three plots have no data? Is this a cosmological zoom-in? Is it possible you’re slicing through a region that doesn’t have any gas particles? If that’s the case setting index_ptype to the gas particle type in your call to yt.load might help. Does I/O work? Are there any nonzero values in the density array when you do: import yt ds =yt.load(“path/to/data”) ad = ds.all_data() density = ad[“gas, “density”] If no then is there a publixly abailable dataset one of us could debug this with? You can share data with “yt upload data.tar.gz”, when the upload finishes you’ll get a URL you can share. Finally you might be interested in the in-deverlopment yt-4.0 branch which contains a number of improvements that we’re planning to release next summer. It’s currently at a beta level of quality and there are a number of people actively using it already. See cameron hummels’ install instructions: https://nbviewer.jupyter.org/url/trident-project.org/notebooks/trident_demes... and YTEP-32 which describes the changes we’ve made: https://ytep.readthedocs.io/en/latest/YTEPs/YTEP-0032.html On Sat, Sep 1, 2018 at 10:15 PM <qinyuxian@163.com> wrote:
I just want to use yt to make a sliceplot of eagle data.
ds = yt.load('/scratch/eagle/AGNdT9L0050N0752/snapshot_015_z002p012/snap_015_z002p012.0.hdf5')
slc = yt.SlicePlot(ds, "z", ['density', 'temperature', 'xray_emissivity']) yt : [INFO ] 2018-09-02 10:17:48,333 Allocating for 8.505e+08 particles (index particle type 'all') yt : [INFO ] 2018-09-02 10:24:50,335 Identified 5.640e+07 octs yt : [INFO ] 2018-09-02 10:26:12,532 Attempting to download ~ 30 Mb of owls ion data from http://yt-project.org/data to ./. Downloading owls_ion_data.tar.gz to . : 33%|?.. | 1/3 [00:05<00:10, 0.18iDownloading owls_ion_data.tar.gz to . : 67%|?..?.. | 2/3 [00:09<00:05, 0Downloading owls_ion_data.tar.gz to . : 100%|?..?..?. 3/3 [00:12<00:00, Downloading owls_ion_data.tar.gz to . : 4it [00:13, 1.76it/s] yt : [INFO ] 2018-09-02 10:49:20,110 xlim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,111 ylim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,113 xlim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,113 ylim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,145 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800 yt : [INFO ] 2018-09-02 10:49:20,149 Making a fixed resolution buffer of (('gas', 'temperature')) 800 by 800 yt : [INFO ] 2018-09-02 10:49:20,151 Making a fixed resolution buffer of (('gas', 'xray_emissivity')) 800 by 800 yt : [WARNING ] 2018-09-02 10:49:20,163 Plot image for field ('gas', 'temperature') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:20,163 Switching to linear colorbar scaling. yt : [WARNING ] 2018-09-02 10:49:22,956 Plot image for field ('gas', 'density') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:22,957 Switching to linear colorbar scaling. yt : [WARNING ] 2018-09-02 10:49:23,598 Plot image for field ('gas', 'xray_emissivity') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:23,598 Switching to linear colorbar scaling.
I get nothing in the figure. What's the matter? _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org

There are figures what I made. At 2018-09-02 17:57:16, "Nathan Goldbaum" <nathan12343@gmail.com> wrote: Do all three plots have no data? Is this a cosmological zoom-in? Is it possible you’re slicing through a region that doesn’t have any gas particles? If that’s the case setting index_ptype to the gas particle type in your call to yt.load might help. Does I/O work? Are there any nonzero values in the density array when you do: import yt ds =yt.load(“path/to/data”) ad = ds.all_data() density = ad[“gas, “density”] If no then is there a publixly abailable dataset one of us could debug this with? You can share data with “yt upload data.tar.gz”, when the upload finishes you’ll get a URL you can share. Finally you might be interested in the in-deverlopment yt-4.0 branch which contains a number of improvements that we’re planning to release next summer. It’s currently at a beta level of quality and there are a number of people actively using it already. See cameron hummels’ install instructions: https://nbviewer.jupyter.org/url/trident-project.org/notebooks/trident_demes... and YTEP-32 which describes the changes we’ve made: https://ytep.readthedocs.io/en/latest/YTEPs/YTEP-0032.html On Sat, Sep 1, 2018 at 10:15 PM <qinyuxian@163.com> wrote: I just want to use yt to make a sliceplot of eagle data. ds = yt.load('/scratch/eagle/AGNdT9L0050N0752/snapshot_015_z002p012/snap_015_z002p012.0.hdf5') slc = yt.SlicePlot(ds, "z", ['density', 'temperature', 'xray_emissivity']) yt : [INFO ] 2018-09-02 10:17:48,333 Allocating for 8.505e+08 particles (index particle type 'all') yt : [INFO ] 2018-09-02 10:24:50,335 Identified 5.640e+07 octs yt : [INFO ] 2018-09-02 10:26:12,532 Attempting to download ~ 30 Mb of owls ion data from http://yt-project.org/data to ./. Downloading owls_ion_data.tar.gz to . : 33%|?.. | 1/3 [00:05<00:10, 0.18iDownloading owls_ion_data.tar.gz to . : 67%|?..?.. | 2/3 [00:09<00:05, 0Downloading owls_ion_data.tar.gz to . : 100%|?..?..?. 3/3 [00:12<00:00, Downloading owls_ion_data.tar.gz to . : 4it [00:13, 1.76it/s] yt : [INFO ] 2018-09-02 10:49:20,110 xlim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,111 ylim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,113 xlim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,113 ylim = 0.000000 33.885000 yt : [INFO ] 2018-09-02 10:49:20,145 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800 yt : [INFO ] 2018-09-02 10:49:20,149 Making a fixed resolution buffer of (('gas', 'temperature')) 800 by 800 yt : [INFO ] 2018-09-02 10:49:20,151 Making a fixed resolution buffer of (('gas', 'xray_emissivity')) 800 by 800 yt : [WARNING ] 2018-09-02 10:49:20,163 Plot image for field ('gas', 'temperature') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:20,163 Switching to linear colorbar scaling. yt : [WARNING ] 2018-09-02 10:49:22,956 Plot image for field ('gas', 'density') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:22,957 Switching to linear colorbar scaling. yt : [WARNING ] 2018-09-02 10:49:23,598 Plot image for field ('gas', 'xray_emissivity') has zero dynamic range. Min = Max = 0.000000. yt : [WARNING ] 2018-09-02 10:49:23,598 Switching to linear colorbar scaling. I get nothing in the figure. What's the matter? _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org
participants (3)
-
Nathan Goldbaum
-
qinyuxian
-
qinyuxian@163.com