Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: Contour Plotting of Ecological Data Using Visad

Hi Nandita,

There is an example in Section 3.5 of Ugo's VisAD tutorial.
However, you'll want to substitute an Irregular2DSet for
the Linear2DSet used in that example. Use the Irregular2DSet
constructor signature:

  public Irregular2DSet(MathType type, float[][] samples)

where samples is dimensioned float[2][number_of_points]
and you set your lat coordinates into samples[0][i]
and lon coordinates into samples[1][i].

Contouring from IrregularSets does not generate labels -
if you want those then resample the FlatField you create
to a Linear2DSet (or other Gridded2DSet) that covers the
region of your Irregular2DSet.

Good luck,
Bill

On Fri, 14 Oct 2005, Nandita Mangal wrote:

> Hi there,
>
> Just looked at Visad today and was wondering if I can
> use Visad to create contours from ecological data
> (consisting of a lat,long and some Z value(say
> temperature)) in my application....If yes then could
> someone tell me where I should start/ which classes in
> Visad to explore to do the above?
>
> thanks,
> Nandita Mangal
> San Diego Supercomputer Center


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690