Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: generating display thru a browser

Just a little more on this.

"From: Bill Hibbard " wrote:

> You can use the open() method of visad.data.vis5d.Vis5DForm
> to read a Vis5D file into a VisAD data object. Or you can
> simply do 'data = load("filename.v5d")' in VisAD Python.
> Then create an appropriate display and use the static method
> 
>   visad.util.Util.captureDisplay(DisplayImpl disp, String filename)
> 
> to save it to a JPEG file. Or do 'saveplot(display, filename)'
> in VisAD Python. There'll be some fiddling to create an
> appropriate display. See Ugo'd VisAD tutorial or Tom's VisAD
> Python tutorial for help on that.

A quick way to view your v5d file would be to use the main method
in Vis5DForm by running:

java -Xmx256m -classpath visad.jar visad.data.vis5d.Vis5DForm 
"filename"

where "filename" is the name of the file.  This will construct
a simple display of the data, mapping all variables to IsoContour.

If you take a look at the main method source, you could see how this
is done and weed out what you don't want to create the display.
Add in a button which would call the captureDisplay method
above and you should have all you need.

Don
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************


  • 2002 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: