<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Ariadna,<div class=""><br class=""></div><div class="">I’ve since remembered that we can’t do particle trajectories when we load them with the plotfiles, but we have two open pull requests that will resolve this problem:</div><div class=""><br class=""></div><div class=""><a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2153/try-to-guess-and-load-particle-file-for/" class="">https://bitbucket.org/yt_analysis/yt/pull-requests/2153/try-to-guess-and-load-particle-file-for/</a></div><div class=""><br class=""></div><div class=""><a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2157/flashparticledataset/" class="">https://bitbucket.org/yt_analysis/yt/pull-requests/2157/flashparticledataset/</a></div><div class=""><br class=""></div><div class="">The first resolves it by making sure we can grab the particle files with plot files, and the second resolves it by giving support within yt to FLASH particle files without the need for the plotfiles at all.</div><div class=""><br class=""></div><div class="">Once these are merged into the codebase, we’ll have better options for working with FLASH particle files for the particle trajectories analysis module. In the meantime, I would suggest continuing with load_particles and letting us know if you have trouble.</div><div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">John </div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On May 2, 2016, at 7:33 PM, Ariadna Murguia <<a href="mailto:doggies012@hotmail.com" class="">doggies012@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;" class=""><div style="margin-top: 0px; margin-bottom: 0px;" class="">Dear John,</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">If I did have the plot files (which I can make), do I just load them with the correspondent particle file?</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">I'm also implementing the load_particles, and I think it is a great and helpful idea.</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Thank you very much,</div><div style="margin-top: 0px; margin-bottom: 0px;" class="">Ariadna</div><p style="margin-top: 0px; margin-bottom: 0px;" class=""></p><br class=""><br class=""><div style="" class=""><hr tabindex="-1" style="display: inline-block; width: 747.734375px;" class=""><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" style="font-size: 11pt;" class=""><b class="">De:</b><span class="Apple-converted-space"> </span>yt-users <<a href="mailto:yt-users-bounces@lists.spacepope.org" class="">yt-users-bounces@lists.spacepope.org</a>> en nombre de John Zuhone <<a href="mailto:jzuhone@gmail.com" class="">jzuhone@gmail.com</a>><br class=""><b class="">Enviado:</b><span class="Apple-converted-space"> </span>lunes, 2 de mayo de 2016 11:58 a. m.<br class=""><b class="">Para:</b><span class="Apple-converted-space"> </span>Discussion of the yt analysis package<br class=""><b class="">Asunto:</b><span class="Apple-converted-space"> </span>Re: [yt-users] FLASH particle trajectories</font><div class=""> </div></div><div class="">Hi Ariadna,<div class=""><br class=""></div><div class="">The issue with this is that FLASH particle files do not carry the grid information with them, so yt cannot figure out where they should go on the grid (this is why checkpoint files work, because the particles and the grid metadata are in the same file) There are two solutions here:</div><div class=""><br class=""></div><div class="">1. Does your simulation have a plot file written at the same time as every particle file? In that case we have ways of using the grid information from the plot file. </div><div class=""><br class=""></div><div class="">2. Alternatively, we can use yt’s “load_particles” functionality to load the particle fields into memory and then run the trajectory that way:</div><div class=""><br class=""></div><div class=""><a href="http://yt-project.org/docs/dev/examining/generic_particle_data.html?highlight=load_particles" class="" id="LPlnk798285">http://yt-project.org/docs/dev/examining/generic_particle_data.html?highlight=load_particles</a></div><div class=""><br class=""></div><div class="">Let us know if you have plot files at the same time as particle files, or if you need to use option 2, and we can provide some assistance. </div><div class=""><br class=""></div><div class="">Best,</div><div class=""><br class=""></div><div class="">John</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 27, 2016, at 7:37 PM, Ariadna Murguia <<a href="mailto:doggies012@hotmail.com" class="">doggies012@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="divtagdefaultwrapper" class="" style="font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;"><div class="" style="margin-top: 0px; margin-bottom: 0px;">Dear Nathan,</div><div class="" style="margin-top: 0px; margin-bottom: 0px;">First, thank you very much for your help.</div><div class="" style="font-family: Calibri, Arial, Helvetica, sans-serif;">Here is an example of a checkpoint file and its correspondent particle file. I tried using Particle trajectories only on the particle file, but I get an error that yt cannot load the file (although it was provided). </div><div class="" style="font-family: Calibri, Arial, Helvetica, sans-serif;">I'm trying to load it with particles instead (reading the positions and velocity with h5py), and trying to add all of the derived fields to an all_data() array. It works fine for most fields, but it is giving me an error for ('index', 'grid_indices'), ('index', 'grid_level') and ('index', 'x'). Do you have any idea how to get around it?</div><div class="" style="font-family: Calibri, Arial, Helvetica, sans-serif;">Thank you very much,</div><div class="" style="font-family: Calibri, Arial, Helvetica, sans-serif;">Ariadna</div><br class=""><br class=""><div class=""><hr tabindex="-1" class="" style="display: inline-block; width: 751.65625px;"><div id="divRplyFwdMsg" dir="ltr" class=""><font face="Calibri, sans-serif" class="" style="font-size: 11pt;"><b class="">De:</b><span class="Apple-converted-space"> </span>yt-users <<a href="mailto:yt-users-bounces@lists.spacepope.org" class="">yt-users-bounces@lists.spacepope.org</a>> en nombre de Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com" class="">nathan12343@gmail.com</a>><br class=""><b class="">Enviado:</b><span class="Apple-converted-space"> </span>miércoles, 27 de abril de 2016 11:41 a. m.<br class=""><b class="">Para:</b><span class="Apple-converted-space"> </span>Discussion of the yt analysis package<br class=""><b class="">Asunto:</b><span class="Apple-converted-space"> </span>Re: [yt-users] FLASH particle trajectories</font><div class=""> </div></div><div class=""><div dir="ltr" class="">Yes, I think that should work. I don't have any datasets that look like yours to check with though.</div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Apr 26, 2016 at 6:12 PM, Ariadna Murguia<span class="Apple-converted-space"> </span><span dir="ltr" class=""><<a href="mailto:doggies012@hotmail.com" target="_blank" class="">doggies012@hotmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br class=""><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div dir="ltr" class=""><div class="" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif;"><div class="" style="margin-top: 0px; margin-bottom: 0px;">Dear yt-users,</div><div class="" style="margin-top: 0px; margin-bottom: 0px;">I'm trying to plot some particle trajectories taken from a FLASH simulation that has particle files. The number of particle files is greater than the checkpoint files. I was wondering if I could use a similar recipe to the yt documentation for particle trajectories but loading data from the particle files instead of using the checkpoints so I have more trajectory points.</div><div class="" style="margin-top: 0px; margin-bottom: 0px;">Thank you very much!</div><span class="HOEnZb"><font color="#888888" class=""><div class="" style="margin-top: 0px; margin-bottom: 0px;">Ariadna</div></font></span></div></div><br class="">_______________________________________________<br class="">yt-users mailing list<br class=""><a href="mailto:yt-users@lists.spacepope.org" class="">yt-users@lists.spacepope.org</a><br class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class=""><br class=""></blockquote></div><br class=""></div></div></div></div><span id="cid:51188599-0AD1-4731-8B5F-7A7A2DE29AA7" class=""><accretion.tar.gz></span><span class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; float: none; display: inline !important;">_______________________________________________</span><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><span class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; float: none; display: inline !important;">yt-users mailing list</span><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="mailto:yt-users@lists.spacepope.org" class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">yt-users@lists.spacepope.org</a><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;"></div></blockquote></div><br class=""></div></div></div></div><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">yt-users mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:yt-users@lists.spacepope.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">yt-users@lists.spacepope.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></div></blockquote></div><br class=""></div></body></html>