<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><br>Hi!<br>Don't worry, I'm thankful for your help. My data is a vtk legacy file for unstructured grid. The coordinates are of the vertex, but the values of the variables are cell-center. I'm available on thursday and on friday before noon (PDT). Are you available?<br>Ariadna<br><br><div>> Hi Ariadna,<br>> <br>> Sorry for the delay in my reply.  I think that there might need to be<br>> a slight modification to the script I sent to get it working for your<br>> data.  Ultimately, none of the reshaping/loading/etc matter -- the end<br>> result, where you supply particle_position_x, particle_position_y, and<br>> particle_position_z is the important part.  Do you think that it would<br>> be feasible to do that with your data?  And, are your data values<br>> vertex defined or cell-center defined?  If the former, the technique I<br>> showed should work, but if the latter, there is likely a much easier<br>> technique to use.<br>> <br>> Today I'm going to have limited availability, but perhaps we could set<br>> up a time on Thursday or Friday to go over this in our IRC channel,<br>> with lower latency responses?<br>> <br>> -Matt<br>> <br>> On Tue, Jul 15, 2014 at 12:58 PM, Ariadna Murguia<br>> <doggies012@hotmail.com> wrote:<br>> > Hi!<br>> > My data has 3 coordinates (cylindrical), although the angle is cero (so it<br>> > is a 2D simulation).  I changed it to 3, but still vals.size/3 is not an<br>> > integer. Can you tell me the order of your data? In the simulations I'm<br>> > using the first numbers correspond to the 3 coordinates of each of the cells<br>> > vertex. Then, there is a number for the shape of the mesh (4 in the case of<br>> > squares), followed by the list of vertex. After that, it has the values of<br>> > the variables inside the square.<br>> > Thank you for your help,<br>> > Ariadna<br>> ><br>> ><br>> >> Are you doing 3D visualization? The simulation I was using when I<br>> >> wrote that script was 2D -- if yours is 3D, you will likely need to<br>> >> change it to 3, rather than 2, in that line. If you give a bit more<br>> >> info about the data (shape for instance) I can try replicating it<br>> >> here.<br>> >><br>> >> -Matt<br>> >><br>> >> On Mon, Jul 14, 2014 at 2:51 PM, Ariadna Murguia <doggies012@hotmail.com><br>> >> wrote:<br>> >> > Hi!<br>> >> > I wrote a while back asking to visualize a dataset in an unstructured<br>> >> > grid<br>> >> > with AMR and a vtk output file. I was given a script that could do<br>> >> > simple<br>> >> > visualizations: http://paste.yt-project.org/show/4879/ .<br>> >> > I tried altering it in order to visualize my data but (line 39), the<br>> >> > number<br>> >> > of elements in my vals array is odd, making the reshape become an error.<br>> >> > Is<br>> >> > there a way around it?<br>> >> > Thank you very much<br>> >> > Ariadna Murguia Berthier<br>> >> ><br>> >> > _______________________________________________<br>> >> > yt-users mailing list<br>> >> > yt-users@lists.spacepope.org<br>> >> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> >> ><br>> >> _______________________________________________<br>> >> yt-users mailing list<br>> >> yt-users@lists.spacepope.org<br>> >> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> ><br>> > _______________________________________________<br>> > yt-users mailing list<br>> > yt-users@lists.spacepope.org<br>> > http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br>> ><br>> _______________________________________________<br>> yt-users mailing list<br>> yt-users@lists.spacepope.org<br>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org<br></div>                                       </div></body>
</html>