<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 15, 2016 at 11:33 PM, tazkera haque <span dir="ltr"><<a href="mailto:h.tazkera@gmail.com" target="_blank">h.tazkera@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Hi people, <br><br></div>I have a hotspot in one of my sliceplots [see attached image] and I want to find the resolution/cell size of the hotspot, in other words, the ['x'], ['y']. ['z'] co-ordinates  and ['dx'] of the cells those contain that maximum temperature. I have written a code like this:<br></div><div><br></div><div><b><br></b></div><div><b>import yt</b></div><div><div><b>ds = yt.load("~/super3d_hdf5_plt_<wbr>cnt_0018")</b></div><div><b><br></b></div><div><b>dd = ds.all_data()</b></div><div><b>v, c = ds.find_max("temperature")</b></div></div></div></blockquote><div><br></div><div>From here, try:</div><div><br></div><div>point = ds.point(c)</div><div><br></div><div>print(point['x'])<br></div><div>print(point['y'])<br></div><div>print(point['z'])<br></div><div>print(point['dx'])<br></div><div>print(point['dy'])<br></div><div>print(point['dz'])<br></div><div><br></div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><b><br></b></div><div><b>print dd['dx']</b></div><div><b>print dd['dy']</b></div><div><b>print dd['dz']</b></div><div><b>print dd['x']</b></div><div><b>print dd['y']</b></div><div><b>print dd['z']</b></div></div></div></blockquote><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>and I have an output like this:</div><div><br></div><div><div><b>yt : [INFO     ] 2016-09-15 22:49:18,265 Parameters: current_time              = 28.501984704</b></div><div><b>yt : [INFO     ] 2016-09-15 22:49:18,265 Parameters: domain_dimensions         = [128 128 128]</b></div><div><b>yt : [INFO     ] 2016-09-15 22:49:18,293 Parameters: domain_left_edge          = [ -2.80000000e+10  -2.80000000e+10  -2.80000000e+10]</b></div><div><b>yt : [INFO     ] 2016-09-15 22:49:18,294 Parameters: domain_right_edge         = [  2.80000000e+10   2.80000000e+10   2.80000000e+10]</b></div><div><b>yt : [INFO     ] 2016-09-15 22:49:18,294 Parameters: cosmological_simulation   = 0.0</b></div><div><b>yt : [INFO     ] 2016-09-15 22:49:25,099 Max Value is 4.81587e+09 at -184570312.5000000000000000 116210937.5000000000000000 6835937.5000000000000000</b></div><div><b>[  4.37500000e+08   4.37500000e+08   4.37500000e+08 ...,   4.37500000e+08</b></div><div><b>   4.37500000e+08   4.37500000e+08] code_length</b></div><div><b>[  4.37500000e+08   4.37500000e+08   4.37500000e+08 ...,   4.37500000e+08</b></div><div><b>   4.37500000e+08   4.37500000e+08] code_length</b></div><div><b>[  4.37500000e+08   4.37500000e+08   4.37500000e+08 ...,   4.37500000e+08</b></div><div><b>   4.37500000e+08   4.37500000e+08] code_length</b></div><div><b>[ -2.77812500e+10  -2.77812500e+10  -2.77812500e+10 ...,   2.77812500e+10</b></div><div><b>   2.77812500e+10   2.77812500e+10] code_length</b></div><div><b>[ -2.77812500e+10  -2.77812500e+10  -2.77812500e+10 ...,   2.77812500e+10</b></div><div><b>   2.77812500e+10   2.77812500e+10] code_length</b></div><div><b>[ -2.77812500e+10  -2.73437500e+10  -2.69062500e+10 ...,   2.69062500e+10</b></div><div><b>   2.73437500e+10   2.77812500e+10] code_length</b></div></div><div><br></div><div>but I believe my code is wrong in this context, because my highest resolution is 136 km and this is an AMR code , so I should see ['dx'] very close to the order of 136 km. please help me get the code. thanks</div><span class="gmail-HOEnZb"><font color="#888888"><div><br></div><div>Tazkera </div></font></span></div>
<br>______________________________<wbr>_________________<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/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div></div>