[Yt-svn] yt-commit r982 - trunk/yt/raven
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Fri Dec 5 09:45:33 PST 2008
Author: mturk
Date: Fri Dec 5 09:45:32 2008
New Revision: 982
URL: http://yt.spacepope.org/changeset/982
Log:
Added HDF5 export to Fixed Resolution Buffers
Modified:
trunk/yt/raven/FixedResolution.py
Modified: trunk/yt/raven/FixedResolution.py
==============================================================================
--- trunk/yt/raven/FixedResolution.py (original)
+++ trunk/yt/raven/FixedResolution.py Fri Dec 5 09:45:32 2008
@@ -74,6 +74,14 @@
dpy = (self.bounds[3]-self.bounds[2])/self.buff_size[1]
return distance/dpy
+ def export_hdf5(self, filename, fields = None):
+ import tables
+ if fields is None: fields = self.data.keys()
+ output = tables.openFile(filename, "a")
+ for field in fields:
+ output.createArray("/",field,self[field])
+ output.close()
+
def export_fits(self, filename_prefix, fields = None):
"""
This will export a set of FITS images of either the fields specified
More information about the yt-svn
mailing list