[yt-users] writing out covering grid.

Dave Semeraro semeraro at tacc.utexas.edu
Tue Oct 20 10:30:12 PDT 2015


Hello,

I have created a covering grid from a sample Enzo dataset. I would like to write the "density" field to a file. I am doing the following but getting an error.

cg = ds.covering_grid(3,[0.,0.,0.],ds.domain_dimensions*2**2)

cg.write_out("spoot","Density")

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/work/01197/semeraro/maverick/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.py", line 399, in write_out
    field_data = np.array([self.field_data[field] for field in field_order])
KeyError: 'x'

Is it possible to write out the single field to a file from a covering grid?

DAve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20151020/752e32f2/attachment.htm>


More information about the yt-users mailing list