Hi Hua:
I'm also not so familiar with h5 file but I can only give you a few
suggestions:
I haven't try to output a 4D data, even a 3D data. How can the data be
organized?
You can use -x <ix> -y <iy> -z <iz> -t <it> to specify the particular slice
of the whole data, see the h5totxt manual.
And, maybe a bash script with for-loop and use '>' to append all slices of
data to one file.
A better way could be using hdf5 C++ interface to handle the data, you may
need to see http://www.hdfgroup.org/HDF5/Tutor/h5lite.html for detailed
examples.
It can input the data from h5file to multi-dimension array and go on your
process.

Message: 2
Date: Mon, 19 Oct 2009 11:52:10 -0400
From: Hua Bao <[email protected]>
Subject: [Meep-discuss] how does h5totxt output 4D data?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi everyone,

I am modeling a continuous plane wave incident on a structure.
I want to extract the amplitude instead of instant field and put it into a
contour plot.

To get the amplitude I can use the maximum value of the field. Since I am
not familiar with hf5 files, I want to convert it to plain text and write a
program to get the maximum.

Can anyone point out how h5totxt output 4D data?

Or is there any better way to get the field amplitude and plot it?

Thanks,
Hua




------------------------------

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

End of meep-discuss Digest, Vol 44, Issue 17
********************************************



_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to