[yt-users] Load in ASCII VTK

Lukas Bystricky lukasbystricky at gmail.com
Sun May 29 12:41:27 PDT 2016


Hello all,

This is a followup to my question here (
http://lists.spacepope.org/pipermail/yt-users-spacepope.org/2016-May/007830.html).
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.

I'm trying to load a legacy VTK file into YT (see format description
http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf), but I when
I try:

ds = yt.load("file.vtk")

I get the error:

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'


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?


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?


Thanks again, and sorry for the double posting.


Lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160529/756e530e/attachment.htm>


More information about the yt-users mailing list