Re: [idvusers] API for vertical section plots

Jon-

It sounds like Tommy has a solution for you if you don't need the GeoGrid solution. Let me know if you need more help.

Don

On 1/20/11 2:40 AM, Jon Blower wrote:
Thanks to everyone for very helpful suggestions.  I'm going to try to reply to 
lots of people at once!  Sorry if this should have been on the developers' 
mailing list.

Julien - I need to render images (PNG, JPEG, GIF) on a server, for transmission 
to a client over the web.  So I don't want to use Swing, AWT or any 
desktop-based windowing frameworks.  Ideally I'd just like to render a 
BufferedImage.

Don/Jeff - thanks for the suggestions.  Given that I can already create a 2D array of 
values (a "raw" array, separate from the whole GeoGrid set of classes), I think 
it's worth my looking at VisAD and seeing if I can use this directly, outside of the IDV. 
 Does this sound like a good idea?

I'm excited to hear that you're looking at integrating ncWMS with RAMADDA!  I'm 
very happy to help with this, irrespective of my success or otherwise with IDV. 
 Just drop me a line (or subscribe to ncWMS-users, http://ncwms.sf.net) if you 
have any questions.

Cheers,
Jon


-----Original Message-----
From: idvusers-bounces@xxxxxxxxxxxxxxxx 
[mailto:idvusers-bounces@xxxxxxxxxxxxxxxx] On Behalf Of 
idvusers-request@xxxxxxxxxxxxxxxx
Sent: 19 January 2011 19:00
To: idvusers@xxxxxxxxxxxxxxxx
Subject: idvusers Digest, Vol 23, Issue 8

Send idvusers mailing list submissions to
        idvusers@xxxxxxxxxxxxxxxx

To subscribe or unsubscribe via the World Wide Web, visit
        http://mailman.unidata.ucar.edu/mailman/listinfo/idvusers
or, via email, send a message with subject or body 'help' to
        idvusers-request@xxxxxxxxxxxxxxxx

You can reach the person managing the list at
        idvusers-owner@xxxxxxxxxxxxxxxx

When replying, please edit your Subject line so it is more specific
than "Re: Contents of idvusers digest..."


Today's Topics:

    1. Re: API for vertical section plots (Julien Chastang)
    2. Re: API for vertical section plots (Jeff McWhirter)
    3. Re: API for vertical section plots (Don Murray)
    4. Re: API for vertical section plots (Don Murray)


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

Message: 1
Date: Tue, 18 Jan 2011 15:00:42 -0700
From: Julien Chastang<chastang@xxxxxxxx>
To: idvusers@xxxxxxxxxxxxxxxx
Subject: Re: [idvusers] API for vertical section plots
Message-ID:<4D360D8A.8010409@xxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Jon,

I am a bit confused as to where you wish your "baseline" abstraction to
be. It sounds like you do not want to use Swing, which means you will
have to start at a very low level (java.awt?)

At any rate, you may want to look at visad
(http://www.ssec.wisc.edu/~billh/visad.html), the graphical rendering
library for the IDV.

Good luck.

-Julien

On 1/17/11 2:13 PM, Jon Blower wrote:
Dear IDV folk,

I've seen that IDV can produce vertical section plots.  I'm interested in 
re-using this capability in other software (ncWMS) if possible.  I'd like to 
produce a plot as a standalone image (i.e. outside the context of Swing or any 
particular desktop), ideally as a BufferedImage.  Could someone please point me 
to the relevant bit in the libraries please?

Thanks,
Jon
_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/




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

Message: 2
Date: Tue, 18 Jan 2011 18:38:59 -0700
From: Jeff McWhirter<jeffmc@xxxxxxxxxxxxxxxx>
To: Jon Blower<j.d.blower@xxxxxxxxxxxxx>
Cc: "Kevin X. Yang"<k.yang@xxxxxxxxxxxxx>,
        "idvusers@xxxxxxxxxxxxxxxx"<idvusers@xxxxxxxxxxxxxxxx>
Subject: Re: [idvusers] API for vertical section plots
Message-ID:
        <AANLkTikUUq2JEnHkMHAHosH15SYaLtu=R4PWPbpLxUOY@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1

Hi Jon,


I've seen that IDV can produce vertical section plots.  I'm interested in
re-using this capability in other software (ncWMS) if possible.  I'd like to
produce a plot as a standalone image (i.e. outside the context of Swing or
any particular desktop), ideally as a BufferedImage.  Could someone please
point me to the relevant bit in the libraries please?


You can use the IDV in server mode, creating an ISL file that generates a
cross section display and capturing it as an image.
You can see some example code in the ramadda svn tree:
https://sourceforge.net/projects/ramadda/
under src/ucar/unidata/repository/idv/IdvOutputHandler
This is basically a web based implementation of the IDV.

Using the regular Cross Section display to do this would be inefficient
because the display would also be adding itself into a 3D view. However, if
you are interested I could work with you to make any necessary changes to
the IDV base.

Of course, you have to help me implement ncwms in RAMADDA (which I just
started doing last weekend. go figure).

  -Jeff


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

Message: 3
Date: Tue, 18 Jan 2011 19:09:41 -0700
From: Don Murray<Don.Murray@xxxxxxxx>
To: idvusers@xxxxxxxxxxxxxxxx
Subject: Re: [idvusers] API for vertical section plots
Message-ID:<4D3647E5.9060208@xxxxxxxx>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Jon-

This is probably a discussion better for idvdevelopers so as not to
scare off the non-programmer IDV users ;-) , but....

The IDV uses the VisAD Data model not the netCDF CDM as the basis for
the data it slices and dices.  VisAD allows arbitrary samplings into a
grid not limited to rows/columns like netCDF.  However, there are IDV
classes that take CDM GeoGrid objects and make the requisite VisAD Fields.

So, another lightweight approach might be to use the
ucar.unidata.data.grid.GeoGridAdapter to create a VisAD FieldImpl from a
GeoGrid and then use
ucar.unidata.data.grid.GridUtil.sliceAlongLatLonLine() to get the slice
as a FieldImpl.  Basically, that will be a 2D array that you could then
export to whatever graphics you want.  It would require some
understanding of the VisAD data model. It might also need some
adjustments to the GeoGridAdapter methods to use outside the context of
the IDV.  But, as Jeff said, we'd trade that knowledge for help
implementing ncWMS in RAMADDA. ;-)

Don

On 1/18/11 6:38 PM, Jeff McWhirter wrote:
Hi Jon,


I've seen that IDV can produce vertical section plots.  I'm interested in
re-using this capability in other software (ncWMS) if possible.  I'd like to
produce a plot as a standalone image (i.e. outside the context of Swing or
any particular desktop), ideally as a BufferedImage.  Could someone please
point me to the relevant bit in the libraries please?


You can use the IDV in server mode, creating an ISL file that generates a
cross section display and capturing it as an image.
You can see some example code in the ramadda svn tree:
https://sourceforge.net/projects/ramadda/
under src/ucar/unidata/repository/idv/IdvOutputHandler
This is basically a web based implementation of the IDV.

Using the regular Cross Section display to do this would be inefficient
because the display would also be adding itself into a 3D view. However, if
you are interested I could work with you to make any necessary changes to
the IDV base.

Of course, you have to help me implement ncwms in RAMADDA (which I just
started doing last weekend. go figure).

   -Jeff
_______________________________________________
idvusers mailing list
idvusers@xxxxxxxxxxxxxxxx
For list information, to unsubscribe, visit: 
http://www.unidata.ucar.edu/mailing_lists/


--
Don Murray
NOAA/ESRL/PSD and CIRES
303-497-3596
http://www.esrl.noaa.gov/psd/people/don.murray/



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