<div dir="ltr">Hi Adrianna,<div><br></div><div>My guess is that you might need to set a bounding box on the simulation.  There's an example of how to load with a bounding box here:</div><div><br></div><div><a href="http://yt-project.org/doc/cookbook/gadget_notebook.html" target="_blank">http://yt-project.org/doc/cookbook/gadget_notebook.html</a><br></div><div><br></div><div>especially the lines around here:</div><div><br></div><div><pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:1.42857;word-wrap:break-word;color:rgb(51,51,51);border:none;border-radius:4px;white-space:pre-wrap;background-color:rgb(247,247,247)"><span>bbox_lim</span> <span style="color:rgb(102,102,102)">=</span> <span style="color:rgb(102,102,102)">1e5</span> <span style="color:rgb(64,128,128);font-style:italic">#kpc</span>

<span>bbox</span> <span style="color:rgb(102,102,102)">=</span> <span>[[</span><span style="color:rgb(102,102,102)">-</span><span>bbox_lim</span><span>,</span><span>bbox_lim</span><span>],</span>
        <span>[</span><span style="color:rgb(102,102,102)">-</span><span>bbox_lim</span><span>,</span><span>bbox_lim</span><span>],</span>
        <span>[</span><span style="color:rgb(102,102,102)">-</span><span>bbox_lim</span><span>,</span><span>bbox_lim</span><span>]]</span>
 
<span>ds</span> <span style="color:rgb(102,102,102)">=</span> <span>yt</span><span style="color:rgb(102,102,102)">.</span><span>load</span><span>(</span><span>fname</span><span>,</span><span>unit_base</span><span style="color:rgb(102,102,102)">=</span><span>unit_base</span><span>,</span><span>bounding_box</span><span style="color:rgb(102,102,102)">=</span><span>bbox</span><span>)</span></pre><pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:1.42857;word-wrap:break-word;color:rgb(51,51,51);border:none;border-radius:4px;white-space:pre-wrap;background-color:rgb(247,247,247)"><span><br></span></pre><pre style="overflow:auto;font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:1.42857;word-wrap:break-word;color:rgb(51,51,51);border:none;border-radius:4px;white-space:pre-wrap;background-color:rgb(247,247,247)"><span><br></span></pre></div><div class="gmail_extra"><br></div><div class="gmail_extra">the thing is you'll have to make your box bigger than the extent of all of your particles (which, if you don't know a priori, you could do either with a guess and check, or by explicitly checking their locations with something like:</div><div class="gmail_extra"><br></div><div class="gmail_extra">ad = ds.all_data()</div><div class="gmail_extra">coordinates = ad[<span style="color:rgb(0,0,0);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;line-height:1.42857;white-space:pre-wrap">('PartType0', 'Coordinates')]</span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;line-height:1.42857;white-space:pre-wrap"><br></span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;line-height:1.42857;white-space:pre-wrap">and then checking the max/min coordinate values.</span></div><div class="gmail_extra"><br></div><div class="gmail_extra">-d</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 27, 2016 at 10:52 PM, Adrianna Perez <span dir="ltr"><<a href="mailto:aperez313@toromail.csudh.edu" target="_blank">aperez313@toromail.csudh.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">







<p><span>Hi Nathan,</span></p><p><span>Thanks for getting back to me! This is the code I am running and the file "</span>snapshot_020.hdf5" is saved on my desktop. Sorry I do not know the answer to the third question. All I know is that it's simulated data.</p><p>Code:</p><p><span>ds = yt.load(</span><span>"snapshot_020.hdf5"</span><span>)</span></p>
<p><span># Create density slices in all three axes.</span></p>
<p><span>yt.SlicePlot(ds, 'x', "density", width = (1000.0, 'kpc')).save()</span></p>
<p><span>yt.SlicePlot(ds, 'y', "density", width = (1000.0, 'kpc')).save()</span></p>
<p><span>yt.SlicePlot(ds, 'z', "density", width = (1000.0, 'kpc')).save()</span></p><p>Thank you,</p><p>Adrianna P.</p></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Mon, Jun 27, 2016 at 6:05 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div>Hi Adriana,<div><br></div><div>Can you share a short code sample that triggers this error? In particular, h<span></span>ow are you loading your dataset? Is this a cosmological or non-cosmological output?</div><span><font color="#888888"><div><br></div></font></span><div><span><font color="#888888">Nathan</font></span><div><div><br><br>On Monday, June 27, 2016, Adrianna Perez <<a href="mailto:aperez313@toromail.csudh.edu" target="_blank">aperez313@toromail.csudh.edu</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">







<p>To whom it may concern,</p><p><span>I am having trouble loading GIZMO data to make a simple slice plot and this is the error I get:</span></p><p><span>yt.utilities.exceptions.YTDomainOverflow: Particle bounds (-934.41559, -727.99188, -1092.047) and (509.55978, 797.46954, 1034.1028) exceed domain bounds [ 0.  0.  0.] code_length and [ 10000.  10000.  10000.] code_length</span></p><p>Any help would be really useful. Please send me any questions you may have.</p><p>Please and thank you,</p><p>Adrianna Perez</p></div>
</blockquote></div></div></div>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></div>