[yt-users] Slice plot in FITS format

Nathan Goldbaum nathan12343 at gmail.com
Fri Jul 29 13:04:54 PDT 2016


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 at 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 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/20160729/b315f7e0/attachment.html>


More information about the yt-users mailing list