Closed astro313 closed 6 years ago
We should be loading all of them.
Any chance you can share this output? You can use yt upload some_file.tar.gz
to publicly share it. I'm also happy to do that privately if you're not comfortable publicly sharing the data.
I just uploaded the file: test.tgz.
I am using yt version 3.4.1.
You need to share the URL that gets printed out. The latest yt version is 3.5.0, you might also try updating yt.
Here it is: http://use.yt/upload/7d143578
When I try to unzip that file I get an error:
$ tar xzvf test.tgz
s48/snap_m25n256_151.hdf5
tar: s48/snap_m25n256_151.hdf5: Wrote only 512 of 10240 bytes
tar: Exiting with failure status due to previous errors
Are you able to unzip that file?
$ ls -l s48/snap_m25n256_151.hdf5
-rw-r--r--. 1 goldbaum goldbaum 3852308480 Nov 6 18:02 s48/snap_m25n256_151.hdf5
Is that the right size?
file size of original hdf5 is 4089575170.
after uncompressing the test.tgz, I get the same size. Should I try uploading the file another way?
Sure, maybe try google drive or dropbox?
could you please try: https://www.dropbox.com/s/2jobx9dosihrts8/test.tgz?dl=0
So I'm still seeing the same errors from tar when I try to unzip the file. Can you just upload the raw unzipped file?
ok, with yt 3.5.0 I see:
In [1]: ds.field_list
Out[1]:
[('PartType0', 'AGS-Softening'),
('PartType0', 'Coordinates'),
('PartType0', 'DelayTime'),
('PartType0', 'Density'),
('PartType0', 'Dust_Masses'),
('PartType0', 'Dust_Metallicity'),
('PartType0', 'ElectronAbundance'),
('PartType0', 'FractionH2'),
('PartType0', 'GrackleHI'),
('PartType0', 'GrackleHII'),
('PartType0', 'GrackleHM'),
('PartType0', 'GrackleHeI'),
('PartType0', 'GrackleHeII'),
('PartType0', 'GrackleHeIII'),
('PartType0', 'HaloID'),
('PartType0', 'ID_Generations'),
('PartType0', 'InternalEnergy'),
('PartType0', 'Masses'),
('PartType0', 'Metallicity_00'),
('PartType0', 'Metallicity_01'),
('PartType0', 'Metallicity_02'),
('PartType0', 'Metallicity_03'),
('PartType0', 'Metallicity_04'),
('PartType0', 'Metallicity_05'),
('PartType0', 'Metallicity_06'),
('PartType0', 'Metallicity_07'),
('PartType0', 'Metallicity_08'),
('PartType0', 'Metallicity_09'),
('PartType0', 'Metallicity_10'),
('PartType0', 'NWindLaunches'),
('PartType0', 'NeutralHydrogenAbundance'),
('PartType0', 'ParticleIDs'),
('PartType0', 'Potential'),
('PartType0', 'Sigma'),
('PartType0', 'SmoothingLength'),
('PartType0', 'StarFormationRate'),
('PartType0', 'Velocities'),
('PartType1', 'AGS-Softening'),
('PartType1', 'Coordinates'),
('PartType1', 'HaloID'),
('PartType1', 'ID_Generations'),
('PartType1', 'Masses'),
('PartType1', 'ParticleIDs'),
('PartType1', 'Potential'),
('PartType1', 'Velocities'),
('PartType4', 'AGS-Softening'),
('PartType4', 'Coordinates'),
('PartType4', 'Dust_Masses'),
('PartType4', 'Dust_Metallicity'),
('PartType4', 'HaloID'),
('PartType4', 'ID_Generations'),
('PartType4', 'Masses'),
('PartType4', 'Metallicity_00'),
('PartType4', 'Metallicity_01'),
('PartType4', 'Metallicity_02'),
('PartType4', 'Metallicity_03'),
('PartType4', 'Metallicity_04'),
('PartType4', 'Metallicity_05'),
('PartType4', 'Metallicity_06'),
('PartType4', 'Metallicity_07'),
('PartType4', 'Metallicity_08'),
('PartType4', 'Metallicity_09'),
('PartType4', 'Metallicity_10'),
('PartType4', 'ParticleIDs'),
('PartType4', 'Potential'),
('PartType4', 'StellarFormationTime'),
('PartType4', 'Velocities'),
('PartType5', 'AGS-Softening'),
('PartType5', 'BH_AccretionLength'),
('PartType5', 'BH_Mass'),
('PartType5', 'BH_Mass_AlphaDisk'),
('PartType5', 'BH_Mdot'),
('PartType5', 'BH_NProgs'),
('PartType5', 'Coordinates'),
('PartType5', 'HaloID'),
('PartType5', 'ID_Generations'),
('PartType5', 'Masses'),
('PartType5', 'ParticleIDs'),
('PartType5', 'Potential'),
('PartType5', 'StellarFormationTime'),
('PartType5', 'Velocities'),
('all', 'AGS-Softening'),
('all', 'Coordinates'),
('all', 'HaloID'),
('all', 'ID_Generations'),
('all', 'Masses'),
('all', 'ParticleIDs'),
('all', 'Potential'),
('all', 'Velocities')]
Can you try updating your yt installation? I'd also strongly encourage you to try using the yt-4.0 branch when working with SPH datasets of this size, since that branch will produce higher fidelity visualizations and will be much, much faster. I can share more detail about yt-4.0 if you're curious about that.
Thanks! Indeed, the latest version fixed this! Thanks for your help.
Hi,
I am trying to load some simulation output files from gadget stored in .hdf5 format.
When I run
h5ls -r <file>
, it shows all the fields.But when I run
ds = yt.load(file); ds.fields_list
, it only showedPartType0
andPartType1
.Is there a way to force
yt
to load all the Groups from the hdf5 files?Thanks!