<div dir="ltr">Thanks John for your quick response. I've attached a sample file VTK file that I have. This is from a finite difference simulation, so grids will always be uniform. <div><br></div><div>I found the Athena source code for how they write their VTK files (<a href="http://www.astro.princeton.edu/~jstone/Athena/doxygen/html.with_source/output__vtk_8c_source.html">http://www.astro.princeton.edu/~jstone/Athena/doxygen/html.with_source/output__vtk_8c_source.html</a>) and it looks similar to mine, except that theirs is in binary and they use a different dataset structure. </div><div><br></div><div>I'm an extremely new YT user (and I've never done any YT development), so I don't know how much help I'd be but if you'd like a hand developing a new frontend let me know. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 29, 2016 at 4:08 PM, John ZuHone <span dir="ltr"><<a href="mailto:jzuhone@gmail.com" target="_blank">jzuhone@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="auto"><div>Hi Lukas,</div><div><br></div><div>I think Nathan's point was that there are other people working on new frontends currently, and they are smoothing over the instructions for how to make a new one.</div><div><br></div><div>Probably the best thing to do in the short run is to figure out how to read your data in using the Athena frontend. If you have a sample dataset you can post somewhere for us to try that would help.</div><div><br></div><div>I nominally maintain the Athena frontend, but I don't have a ton of time at the moment, so it sort of depends on how difficult it will be to make the changes in terms of how long it will take. If you're up for giving it a shot yourself I'm happy to give you pointers.</div><div><br></div><div>Is this uniformly gridded data, or something else?</div><div><br></div><div>Best,</div><div><br></div><div>John</div><div><br><br><div><div style="word-wrap:break-word"><span style="background-color:rgba(255,255,255,0)">================================</span></div><div style="word-wrap:break-word"><span style="background-color:rgba(255,255,255,0)">John ZuHone, Chandra/ACIS Operations<span style="white-space:pre-wrap"> </span></span></div><div style="word-wrap:break-word"><span style="background-color:rgba(255,255,255,0)">Harvard-Smithsonian Center for Astrophysics<br><br></span></div><div style="word-wrap:break-word"><font color="#000000"><span style="background-color:rgba(255,255,255,0)"><a dir="ltr">60 Garden St.</a>, MS-67 (w) <a dir="ltr" href="tel:617-496-1816" target="_blank">617-496-1816</a><br><a dir="ltr">Cambridge, MA 02138</a>. (m) <a dir="ltr" href="tel:781-708-5004" target="_blank">781-708-5004</a></span></font></div><div style="word-wrap:break-word"><span style="background-color:rgba(255,255,255,0)"><br></span></div><div style="word-wrap:break-word"><font color="#000000"><span style="background-color:rgba(255,255,255,0)"><a href="mailto:john.zuhone@cfa.harvard.edu" target="_blank">john.zuhone@cfa.harvard.edu</a><br><a dir="ltr" href="http://hea-www.cfa.harvard.edu/~jzuhone" target="_blank">http://hea-www.cfa.harvard.edu/~jzuhone</a><br>================================</span></font><br></div></div></div><div><div class="h5"><div><br>On May 29, 2016, at 3:41 PM, Lukas Bystricky <<a href="mailto:lukasbystricky@gmail.com" target="_blank">lukasbystricky@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hello all,<div><br></div><div>This is a followup to my question here (<a href="http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2016-May/007830.html" target="_blank">http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2016-May/007830.html</a>). Apologies, but I can't seem to figure out how to reply since I was never sent an e-mail for either my question or Nathan's response. </div><div><br></div><div>I'm trying to load a legacy VTK file into YT (see format description <a href="http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf" target="_blank">http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf</a>), but I when I try:</div><div><br></div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">ds = yt.load("file.vtk")</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">I get the error:</font></pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><pre style="white-space:pre-wrap">traceback (most recent call last):
File "visualization.py", line 3, in <module>
ds = yt.load("file.vtk")
File "C:\Users\Dave\Anaconda2\lib\site-packages\yt\convenience.py", line 84, in load
return candidates[0](*args, **kwargs)
File
"C:\Users\Dave\Anaconda2\lib\site-packages\yt\frontends\athena\data_structures.py",
line 470, in __init__
Dataset.__init__(self, filename, dataset_type,
units_override=units_override)
File
"C:\Users\Dave\Anaconda2\lib\site-packages\yt\data_objects\static_output.py",
line 190, in __init__
self._parse_parameter_file()
File
"C:\Users\Dave\Anaconda2\lib\site-packages\yt\frontends\athena\data_structures.py",
line 528, in _parse_parameter_file
self.domain_left_edge = grid['left_edge']
KeyError: 'left_edge'</pre><pre style="white-space:pre-wrap"><br></pre><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Nathan Goldbaum pointed out is his answer that YT can read in VTK files from Athena. I looked into this and it seems like the difference between my file and Athena's files is that mine are ASCII while Athena's are binary. Is that right? </font></pre><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif">On another note, Nathan also pointed out there are people working on a frontend for the VTK format I'm using. Could I provide any help there?</font></pre><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Thanks again, and sorry for the double posting. </font></pre><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif"><br></font></pre><pre style="white-space:pre-wrap"><font face="arial, helvetica, sans-serif">Lukas</font></pre><pre style="white-space:pre-wrap"><br></pre></pre></div></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>yt-users mailing list</span><br><span><a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a></span><br><span><a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a></span><br></div></blockquote></div><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>