[yt-users] Loading ASCII VTK data
Lukas Bystricky
lukasbystricky at gmail.com
Mon May 16 19:04:59 PDT 2016
Hi all,
I'm trying to load in some data from an ASCII VTK file (attached for
reference) that I created following the guidelines here:
http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf. I can load
this file into Visit and I was hoping that to load it into yt would be as
simple as :
ds = yt.load("lid_driven_cavity_20.vtk")
When I try that however I get the error message:
Traceback (most recent call last):
File "visualization.py", line 3, in <module>
ds = yt.load("lid_driven_cavity_20.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'
Is it possible to load in such a file to yt? If not, since I'm writing my
own data file, how could I edit it to make it readable by yt?
Thanks in advance,
Lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160516/43ffcd15/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lid_driven_cavity_20.vtk
Type: application/octet-stream
Size: 455037 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160516/43ffcd15/attachment-0001.obj>
More information about the yt-users
mailing list