<div dir="ltr">Hi Semyeong,<div><br></div><div>Looks like the bounding box is getting confused somehow, and it's seeing it as the same value for left/right edge.  I think your ordering of the bbox is correct (if it weren't, then changing the ordering to be [[-bbox_lim, -bbox_lim, -bbox_lim], [bbox_lim, bbox_lim, bbox_lim]] would fix it) but I'm not sure why it's failing.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 3, 2016 at 10:46 AM, Semyeong Oh <span dir="ltr"><<a href="mailto:semyeong.oh@gmail.com" target="_blank">semyeong.oh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I'm having trouble reading gadget-2 both binary and hdf5 format, and</div><div>was wondering if I could get some help.</div><div>I'm testing out with the example distributed with gadget code, the gas sphere example which only</div><div>contains ~1500 gas particles.</div><div><br></div><div>- If I try to read the initial condition (distributed with gadget) binary file with yt.load, this command seems to</div><div>execute fine, but the field_list returns empty list.</div><div><br></div><div>- If I try to read the output of the simulation in hdf5 format,</div><div><div>fname = 'output/snapshot_000.hdf5'</div><div>unit_base = {'UnitLength_in_cm'         : 1.,</div><div>             'UnitMass_in_g'            : 1.,</div><div>             'UnitVelocity_in_cm_per_s' : 1.}</div><div><br></div><div>bbox_lim = 5</div><div>bbox = [[-bbox_lim,bbox_lim],</div><div>        [-bbox_lim,bbox_lim],</div><div>        [-bbox_lim,bbox_lim]]</div><div> </div><div>ds = yt.load(fname,unit_base=unit_base, bounding_box=bbox)</div></div><div><br></div><div>and try ds.field_list or ds.print_stats,</div><div>I end up getting something like this <a href="https://gist.github.com/smoh/7779e9ef546f9b05565aef86893dccd2" target="_blank">https://gist.github.com/smoh/7779e9ef546f9b05565aef86893dccd2</a></div><div>which is obscure.</div><div><br></div><div>What am I doing wrong?</div><div><br></div><div>Thanks,</div><div>Semyeong</div></div><span class="HOEnZb"><font color="#888888"><div dir="ltr">-- <br></div><div dir="ltr">Semyeong</div>
</font></span><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>