Re: Converting Field to gif or jpeg

David-

"David V. Olivier" wrote:
> 
> I see that the gif adapter facilitates conversion from a gif to a flat
> field.  What about the other direction?  I saw on the mailing list that
> someone was using Display.getImage() and then converting it from there.  Is
> this the most straightforward method?
> 
> The desired image would contain just a 2d representation of the data
> itself, no axis, units, or background.  Any thoughts?

You might also look at visad.util.DataUtility.extractImage
which will create a java.awt.Image from a FlatField of type
((x, y) -> (r, g, b)).  You could then put out to JPEG.  That
would give you just the data.

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
*************************************************************


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