[yt-users] Temperature Projections

Britton Smith brittonsmith at gmail.com
Fri Jul 16 09:54:20 PDT 2010


Hi Brian,

It looks like the failure was in attempting to access the .yt file and it
may have been corrupted somehow.  Can you delete the .yt file and try this
again?  Also, from looking at the traceback, it looks like you are doing an
unweighted projection of temperature, which is problem not going to give you
something useful, since that is essentially adding temperature values along
the line of sight.  You may want to try adding weight_field='Density' to get
a weighted projection.

If deleting the .yt file doesn't work, please post your script when you
write back.

Britton

On Fri, Jul 16, 2010 at 10:18 AM, Brian Crosby <crosby.bd at gmail.com> wrote:

> Hi all,
>
> Sorry to keep harassing the list, but I just had a job crash while trying
> to make some simple temperature projections on Ranger.  Before crashing, it
> successfully created and saved Density and DM Density projections, and the
> Temperature field is present in the *.cpu files, so that's not the problem.
>  Here's the error:
>
> Traceback (most recent call last):
>   File "projections.py", line 31, in <module>
>     p = pt.add_projection("Temperature",2)
>   File
> "/share/home/01450/bcrosby/yt-x86_64/src/yt-1.7-svn/yt/raven/plot_collection.py",
> line 717, in add
> _projection
>     **field_parameters)
>   File
> "/share/home/01450/bcrosby/yt-x86_64/src/yt-1.7-svn/yt/lagos/BaseDataTypes.py",
> line 1205, in __in
> it__
>     self._refresh_data()
>   File
> "/share/home/01450/bcrosby/yt-x86_64/src/yt-1.7-svn/yt/lagos/BaseDataTypes.py",
> line 237, in _refr
> esh_data
>     self.get_data()
>   File
> "/share/home/01450/bcrosby/yt-x86_64/src/yt-1.7-svn/yt/lagos/BaseDataTypes.py",
> line 1416, in get_
> data
>     if self.serialize: self._store_fields(field, self._node_name)
>   File
> "/share/home/01450/bcrosby/yt-x86_64/src/yt-1.7-svn/yt/lagos/BaseDataTypes.py",
> line 655, in _stor
> e_fields
>     passthrough = True)
>   File
> "/share/home/01450/bcrosby/yt-x86_64/src/yt-1.7-svn/yt/lagos/ParallelTools.py",
> line 197, in in_or
> der
>     f2(*args, **kwargs)
>   File
> "/share/home/01450/bcrosby/yt-x86_64/src/yt-1.7-svn/yt/lagos/HierarchyType.py",
> line 210, in _relo
> ad_data_file
>     self._data_file = h5py.File(self.__data_filename, self._data_mode)
>   File
> "/share/home/01450/bcrosby/yt-x86_64/lib/python2.6/site-packages/h5py-1.2.0-py2.6-linux-x86_64.egg
> /h5py/highlevel.py", line 623, in __init__
>     self.fid = h5f.open(name, h5f.ACC_RDONLY, fapl=plist)
>   File
> "/share/home/01450/bcrosby/yt-x86_64/lib/python2.6/site-packages/h5py-1.2.0-py2.6-linux-x86_64.egg
> /h5py/_sync.py", line 88, in wrap
>     return func(*args, **kwds)
>   File "h5f.pyx", line 74, in h5py.h5f.open (h5py/h5f.c:1228)
> h5py._stub.IOError: Truncated file (File interface: File has been
> truncated)
> TACC: Cleaning up after job: 1472475
> TACC: Done.
>
>
> Thanks,
> Brian
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20100716/0fcd9805/attachment.htm>


More information about the yt-users mailing list