[Developers] Question Regarding VizLauncher

Thomas Radke tradke at aei.mpg.de
Thu May 26 05:24:18 CDT 2005


prabath peiris wrote:
> Hi Radke
> 
> I was able to fix the above problem and it works perfect (platform RH9). 
> I am trying to install the same thing in another machine (which has FC3) 
> and I have following questions.
> 
> 1) I copy the exact information (found in VizLauncher dir) in to 
> /etc/mime.type and /etc/mailcap, but netscape browser won't pick it up. 
> Can I use any other browsers to do this task?

Hmm, I only use mozilla, and there the VizLauncher works fine, even 
without modifying the mime.type and mailcap files.
What I did is to add another MIME type data/x-streamed-hdf5 in 
Edit->Preferences->Navigator->Helper Applications and tell mozilla to 
open this type with the command VizLauncher-streamed-hdf5 which, as Tom 
suggested, is just a symlink to the VizLauncher script. Note that when I 
used the built-in file browser (select "Open with..." and click on 
"Choose") it would follow any symlink and use the command name it points 
to; so I explicitely have to type in the name of the symlink to make it 
work.
Nothing else was needed, after that VizLauncher worked out of the box 
for me.


> 2) I try to run the VizLauncher program in command line. this is what I 
> got when I try to do that!
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
> 
> [root at localhost VizLauncher]# ./VizLauncher 
> http://206.254.3.220:5555/Output/file7XyiWk
> File http://206.254.3.220:5555/Output/file7XyiWk not found
> [root at localhost VizLauncher]# ./VizLauncher-streamed-hdf5 
> http://206.254.3.220:5555/Output/file7XyiWk
> program 'h5ls' not found
> program 'h5dump' not found
> Cannot open input file 'http://206.254.3.220:5555/Output/file7XyiWk'
> [root at localhost VizLauncher]#
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------- 

Yes, that doesn't work because VizLauncher can only open local files 
directly, not URLs. You really need to use a browser for remote files.
Note also that VizLauncher didn't find the programs h5ls and h5dump 
which are expected to be in your ${PATH}.


> 3) which opendx network (.net) file use in this case (I am trying Cactus 
> WaveToy), is it auto generated scrip or how can I get it.

You should set the environment variable DX_NETWORK_DIRS to point to 
yourOpenDXutils/net/ directory. It contains two networks 
VisualizationFromStream and IsosurfacesFromStream which can be used to 
visualise live streamed HDF5 data.


> ** my simulation is running on the same machine.
> 
> this is my parameter (.par) file, just in case if I am doing some 
> mistakes in that file, you can catch it.
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 
> 
> ActiveThorns = "coordbase symbase pugh pughslab pughreduce iojpeg jpeg6b 
> ioutil IOHDF5 IOHDF5Util IOStreamedHDF5 iobasic time wavetoyc cartgrid3d 
> boundary idscalarwavec wavebinarysource httpd httpdextra socket"
> 
...
> IOHDF5::out_every = 10
> IOHDF5::out_vars = "wavetoy::phi"
> IOHDF5::out_dir ="."
...

You only enabled HDF5 file output, no streamed HDF5 output.
In order to do that you say in your parfile eg.

   IOStreamedHDF5::out_every = 1
   IOStreamedHDF5::out_vars  = "wavetoy::phi"

You can also change the port which IOStreamedHDF5 uses to stream out data:

   IOStreamedHDF5::data_port = 7777


-- 
Cheers, Thomas.



More information about the Developers mailing list