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

Contouring and Flow vector access

Hello, everyone,

I need to use VisAD to generate contours and flow maps of a dataset, and then import those contours into a GIS application. To do this, it would be extremely convenient to be able to get the list of vector points describing the contours. My other alternative is to create a display, plot the contours, extract a bitmap, set the bitmap background to something transparent, and import the result into my GIS application. This seems awkward at best.

Looking at the javadoc, I didn't see any obvious accessors. Looking at the source code, I found a static method contour( long parameter list ) in Contour2D.java which ignores all the type safety restrictions of the VisAD data model, but which otherwise appears to give me what I need. Still, I can't help but think that there must be a better way, especially since this doesn't extend to flows anyway.

I'm perfectly happy to extend the source code myself, if the necessary accessors don't exist, but I sure would appreciate any pointers anyone can give me as to where/how contours and flows are calculated for a display. greps for contour and flow in the source tree didn't flash any obvious neon signs.

        Edward


 
 
  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