<div dir="ltr">Hi Reju,<div><br></div><div>There is a new feature that will be in the next major release that will make this very easy.  It is currently available in the development version of yt.  Basically, it allows nearly all data created by yt to be saved in a format that can be reloaded as a yt dataset.  Below is an example of how to use it in your case:</div><div><a href="http://paste.yt-project.org/show/6230/">http://paste.yt-project.org/show/6230/</a><br></div><div>More information can be found here:</div><div><a href="http://yt-project.org/docs/dev/analyzing/saving_data.html">http://yt-project.org/docs/dev/analyzing/saving_data.html</a><br></div><div><br></div><div>If switching to the development version is not an option for you, then you can save them to hdf5 files using the h5py module, which you will have with your yt installation.  In that case, you can do something like this:</div><div><a href="http://paste.yt-project.org/show/6231/">http://paste.yt-project.org/show/6231/</a><br></div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 7, 2016 at 9:46 AM, Reju Sam John <span dir="ltr"><<a href="mailto:rejusamjohn@gmail.com" target="_blank">rejusamjohn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi, <div><br></div><div>I would like to know, how to write the plotted values of a 'SlicePlot()' to a file? For example, I made a slice plot with the following line.</div><div> <font face="monospace, monospace">p = SlicePlot(pf,0,'My_Field',[0.5,0.5,0.5],(20,'Mpc')) </font><br clear="all"><div><br></div><div><div dir="ltr">But how can I write the plotted values to a file? </div><div dir="ltr">Thankyou.</div><span class="HOEnZb"><font color="#888888"><div dir="ltr"><br></div><div dir="ltr">Reju Sam John</div></font></span></div>
</div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>