<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Dear Ian,</p>
<p>Thanks for your reply.</p>
<p>I use VisIt to analyze the data. And I have found some way to do the data reduction by VisIt. So the problem is solved.</p>
<p><br>
</p>
<p>Thanks,</p>
<p>Chia-Hui</p>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>寄件者:</b> ian.hinder@aei.mpg.de <ian.hinder@aei.mpg.de><br>
<b>寄件日期:</b> 2018年10月17日 下午 05:33:06<br>
<b>收件者:</b> 林家暉<br>
<b>副本:</b> Einstein Toolkit Users<br>
<b>主旨:</b> Re: [Users] HDF5 data analysis</font>
<div> </div>
</div>
<div><br class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 15 Oct 2018, at 11:15, 林家暉 <<a href="mailto:r06222015@ntu.edu.tw" class="">r06222015@ntu.edu.tw</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div id="divtagdefaultwrapper" dir="ltr" style="caret-color: rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif;" class="">
<div style="margin-top: 0px; margin-bottom: 0px;" class="">Hello,</div>
<div style="margin-top: 0px; margin-bottom: 0px;" class="">I am trying to analyze 2D output data (.h5) from ET. I want to get a 2D array with uniform grid.However HDF5 with AMR contains many layers and each layer breaks into many components. When I read out
the HDF5 data , I do not know where each component should be. Is there some suggested way to map HDF5 data into a 2D array ?</div>
</div>
</div>
</blockquote>
<div><br class="">
</div>
<div>Hi,</div>
<div><br class="">
</div>
<div>What software are you using to analyse the data? There are frameworks for Mathematica (<a href="http://simulationtools.org" class="">simulationtools.org</a>) and Python (<a href="https://bitbucket.org/DrWhat/pycactuset" class="">https://bitbucket.org/DrWhat/pycactuset</a>).
If you want visualisation rather than more in-depth analysis, then you could try VisIt, which has a reader for ET data.</div>
<div><br class="">
</div>
<div>See <a href="https://docs.einsteintoolkit.org/et-docs/Analysis_and_post-processing" class="">https://docs.einsteintoolkit.org/et-docs/Analysis_and_post-processing</a> for a list of analysis tools that we know about.</div>
<div><br class="">
</div>
<div>If you want to do it manually (and I wouldn't recommend reinventing the wheel), all the information you need to place the individual component in coordinate space is listed in attributes of the datasets. Look at the "origin" attribute for the coordinates
of the origin of the component, and the "delta" attribute for the grid spacing.</div>
<div><br class="">
</div>
</div>
<div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
-- <br class="">
Ian Hinder<br class="">
<a href="https://ianhinder.net" class="">https://ianhinder.net</a><br class="">
</div>
</div>
</div>
<br class="">
</div>
</body>
</html>