You can't save the plot itself in HDF5 format, but you can save the raw image data to a FITS or HDF5 file. Take a look at this example for hdf5:

https://paste.yt-project.org/show/6729/

and for FITS:

https://paste.yt-project.org/show/6730/

Both export_fits and export_hdf5 accept a list of fields to export. In both examples I'm only exporting one field, but you can export as many as you like at one time.

The "frb" attribute of a plot object corresponds to a FixedResolutionBuffer instance. You can read more about FixedResolutionBuffer here: 

http://yt-project.org/doc/visualizing/manual_plotting.html
http://yt-project.org/doc/reference/api/generated/yt.visualization.fixed_resolution.FixedResolutionBuffer.html

On Fri, Jul 29, 2016 at 9:46 AM, Prateek Gupta <prateekgidolia@gmail.com> wrote:
Dear Yt users

I want to save the slice plot in FITS or HDF5 format. How can I do this in yt once I plot the slice plot of derived field.

Many thanks in advance


Regards
Prateek

_______________________________________________
yt-users mailing list
yt-users@lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org