<div dir="ltr">In the following code (c attachment also)<br><br>import pylab as P<br>from yt.mods import *<br>pf = load("<span style="background-color:rgb(255,255,0)">RD0002/RedshiftOutput0002</span>")<br><br>
c = pf.h.find_max('Density')[1]<br>proj = pf.h.proj(1, 'Density')<br><br>width = 96/pf['mpc'] # we want a 1.5 mpc view<br>res = [1000, 1000] # create an image with 1000x1000 pixels<br>frb = proj.to_frb(width, res, center=[0.5,0.5,0.5])<br>
<br>P.imshow(frb['Density'])<br>P.xlabel(r'$x\ \mathrm{kpc}$')<br>P.ylabel(r'$x\ \mathrm{furlongs}$')<br>P.savefig('Density_y.png')<br><br><br clear="all"><div>My problem is to develop a new code which automatically take `n' input files <span style>(RD000<span style="background-color:rgb(255,255,0)">1</span>/RedshiftOutput000<span style="background-color:rgb(255,255,0)">1</span>, RD000<span style="background-color:rgb(255,255,0)">2</span>/RedshiftOutput000<span style="background-color:rgb(255,255,0)">2</span>, </span><span style="background-color:rgb(255,255,0)"><span style="background-color:rgb(255,255,255)">RD000<span style="background-color:rgb(255,255,0)">3</span>/RedshiftOutput000<span style="background-color:rgb(255,255,0)">3</span>, ....</span></span><span style>)</span> and want to save each output files in a folder. <br>
<br></div><div><br><br></div>Please help me..... <br clear="all"><br>-- <br><div dir="ltr">Reju Sam John</div>
</div>