<div dir="auto"><div>Hi Maria,<div dir="auto"><br></div><div dir="auto">You can also use kuibit, which knows how to read the various files and combine them.</div><div dir="auto"><br></div><div dir="auto">Assuming `sim` is your SimDir, `<a href="http://sim.gridfunctions.xyz">sim.gridfunctions.xyz</a>` is a dictionary-like object that contains all the grid functions in those files.</div><div dir="auto"><br></div><div dir="auto">For instance, `<a href="http://sim.gridfunctions.xyz">sim.gridfunctions.xyz</a>["rho"][0]` is going to be a `HierarchicalGridData` for your 3D rest mass density at iteration 0. This data structure contains all the information for the various refinement levels in the data. You can resample it to `UniformGridData` for visualization purposes. </div><div dir="auto"><br></div><div dir="auto">Processing large 3D data with kuibit can be computationally intensive.</div><div dir="auto"><br></div><div dir="auto">Gabriele</div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 15, 2022, 1:30 PM Roland Haas <<a href="mailto:rhaas@illinois.edu">rhaas@illinois.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
Chris' answer is absolutely correct. <br>
<br>
The utilities are built by default by Simfactory and by doing `make<br>
sim-utils` using a non-simfactory build.<br>
<br>
hdf5_merge is the tool to use to combine multiple HDF5 files, eg<br>
different variables or multiple segments of the same simulation.<br>
<br>
It won't merge output files from multiple processes into a single file<br>
(so foo.xyz.file_0.h5 and foo.xyz.file_1.h5 cannot be merged but<br>
foo.xyz.file_0.h5 and bar.xyz.file_0.h5 can be merged).<br>
<br>
If you need merge files foo.xyz.file_0.h5 and foo.xyz.file_1.h5 into<br>
foo.xyz.h5 then you can use the hdf5_slicer utility and its<br>
--out3d-cube option (hdf5_slicer --help gives some examples).<br>
<br>
Yours,<br>
Roland<br>
<br>
> KIa ora Maria,<br>
> <br>
> For me, there are hdf scripts located in Cactus/exe/<Build name>,<br>
> such as hdf5_merge, which should do what you are after. These<br>
> potentially may only be there for certain build options but someone<br>
> more knowledgeable than me can probably expand on that.<br>
> <br>
> Cheers,<br>
> <br>
> Chris<br>
> <br>
> [cid:8795d7d8-3669-4adf-905d-788d81a3ba8c]<br>
> <br>
> <br>
> [cid:3a28163e-f206-41a5-8619-e8b15edd91b0]<br>
> <br>
> <br>
> <br>
> Dr Chris Stevens<br>
> <br>
> Lecturer in Applied Mathematics<br>
> <br>
> Rm 602, Jack Erskine building<br>
> <br>
> School of Mathematics and Statistics<br>
> <br>
> T: +64 3 369 0396 (Internal 90396)<br>
> <br>
> University of Canterbury | Te Whare Wānanga o Waitaha<br>
> <br>
> Private Bag 4800, Christchurch 8140, New Zealand<br>
> <br>
> <a href="https://urldefense.com/v3/__http://www.chrisdoesmaths.com__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSarFL5K9$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://www.chrisdoesmaths.com__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSarFL5K9$</a><br>
> <<a href="https://urldefense.com/v3/__http://www.chrisdoesmaths.com/__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSQw-a2Wd$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://www.chrisdoesmaths.com/__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSQw-a2Wd$</a><br>
> ><br>
> <br>
> <br>
> Director<br>
> SCRI Ltd<br>
> <a href="https://urldefense.com/v3/__http://www.scri.co.nz__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSaWVNa5R$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://www.scri.co.nz__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSaWVNa5R$</a><br>
> <<a href="https://urldefense.com/v3/__http://www.scri.co.nz/__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSYsOUyhW$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__http://www.scri.co.nz/__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSYsOUyhW$</a><br>
> ><br>
> <br>
> ________________________________<br>
> From: <a href="mailto:users-bounces@einsteintoolkit.org" target="_blank" rel="noreferrer">users-bounces@einsteintoolkit.org</a><br>
> <<a href="mailto:users-bounces@einsteintoolkit.org" target="_blank" rel="noreferrer">users-bounces@einsteintoolkit.org</a>> on behalf of Hamilton, Maria<br>
> <<a href="mailto:babiuc@marshall.edu" target="_blank" rel="noreferrer">babiuc@marshall.edu</a>> Sent: 16 June 2022 08:02 To: Roland Haas<br>
> <<a href="mailto:rhaas@illinois.edu" target="_blank" rel="noreferrer">rhaas@illinois.edu</a>> Cc: <a href="mailto:users@einsteintoolkit.org" target="_blank" rel="noreferrer">users@einsteintoolkit.org</a><br>
> <<a href="mailto:users@einsteintoolkit.org" target="_blank" rel="noreferrer">users@einsteintoolkit.org</a>> Subject: [Users] Combine multiple h5 files<br>
> <br>
> You don't often get email from <a href="mailto:babiuc@marshall.edu" target="_blank" rel="noreferrer">babiuc@marshall.edu</a>. Learn why this is<br>
> important<<a href="https://urldefense.com/v3/__https://aka.ms/LearnAboutSenderIdentification__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSfd6n3TN$" rel="noreferrer noreferrer" target="_blank">https://urldefense.com/v3/__https://aka.ms/LearnAboutSenderIdentification__;!!DZ3fjg!7WZG6jdWvLk-xY5fpz4Gs3WVdDMulNQE0FhbqLOwxf9IysF59IG7mH_Z0TF3XaW3u_RV_uOqShXgQ0PhdVxvHwVDSfd6n3TN$</a><br>
> > Hi,<br>
> <br>
> I have a quick question: my output has a series of ....xyz.file_...h5<br>
> and I would like to look at them. Do I have to combine them? If yes,<br>
> is there a way to combine them in one single file?<br>
> <br>
> Maria<br>
> <br>
> _______________________<br>
> Maria C. Babiuc Hamilton, Ph.D.<br>
> Professor, Department of Physics<br>
> College of Science, Marshall University,<br>
> 1 John Marshall Drive, Huntington, WV, 25755<br>
> Room S 257, Phone: (304)696-2754<br>
> <br>
<br>
<br>
<br>
-- <br>
My email is as private as my paper mail. I therefore support encrypting<br>
and signing email messages. Get my PGP key from <a href="http://keys.gnupg.net" rel="noreferrer noreferrer" target="_blank">http://keys.gnupg.net</a>.<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@einsteintoolkit.org" target="_blank" rel="noreferrer">Users@einsteintoolkit.org</a><br>
<a href="http://lists.einsteintoolkit.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.einsteintoolkit.org/mailman/listinfo/users</a><br>
</blockquote></div></div></div>