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

Re: Short program to demo straight contour lines

Hi Russell,

Thanks for the test program - they always help a lot.

I can see two problems:

1. I called visad.jmet.DumpType.dumpDataType() on the
Field you are displaying and it has 1927 missing values
among its 4402 samples. All these missing points will
cause trouble with contouring.

2. More relevant, the Gridded2DSet constructor call:

        Gridded2DSet newFieldDomainSet
          new Gridded2DSet(RealTupleType.LatitudeLongitudeTuple,
                index2LatLonField.getFloats(false),
                index2LatLonField.getFloats(false)[0].length);

constructs a Gridded2DSet with manifold dimension = 1.
That is, its not really a 2-D domain, but a 1-D domain
that zig-zags through 2-D.

Please let me know if these observations help solve your
problem.

Cheers,
Bill

On Fri, 14 May 2004, Russell Steicke wrote:

> Bill and Tom,
>
> Here's an example program to demonstrate the "straight contour lines" I
> mentioned earlier.  The jar file contains:
>
>   contour1.java            The program
>   analysis2004051100.nc    Netcdf file with the data
>
> The .jar is not runnable, you'll have to extract the files.
>
> Thanks
> Russell


 
 
  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