On Sep 1, 2009, at 6:46 PM, Lingyun Wang wrote:
I get a question regarding combing the espilon contour outline with an existing png image. I know how to output png image with epsilon contour data using "h5topng". But in order to save disk space, I output the field intensity png images only and the epsilon h5 file. So how to get similar image as by "h5topng" command?

Use the output-png command in Meep.

From the Meep reference manual:

(output-png component h5topng-options)
Output the given field component (e.g. Ex, etc.) as a PNG image, by first outputting the HDF5 file, then converting to PNG via h5topng, then deleting the HDF5 file. The second argument is a string giving options to pass to h5topng (e.g. "-Zc bluered"). See also the Meep tutorial. It is often useful to use the h5topng -C or -A options to overlay the dielectric function when outputting fields. To do this, you need to know the name of the dielectric-function .h5 file (which must have been previously output by output-epsilon). To make this easier, a built-in shell variable $EPS is provided which refers to the last- output dielectric-function .h5 file. So, for example (output-png Ez "- C $EPS") will output the Ez field and overlay the dielectric contours.
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to