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

Re: Display.Radius "Hole"

Hi Kevin,

Sorry for the delay in responding. There range for
Display.Radius is (0.01, 2.0). The lower bound of
0.01 is to avoid arithmetical singularities at
Radius = 0. In order to get your "range" RealType
value of 0.0 right at the center of the display
(i.e., Radius = 0.0), change your:

  ranMap.setRange(1000.0, 800000.0);

to:

  ranMap.setRange(4000.0, 800000.0);

That is, the following three mappings all fall on
the same linear line:

       0.0 -> 0.0
    4000.0 -> 0.01
  800000.0 -> 2.0

Good luck,
Bill

On Fri, 20 Jan 2006, Kevin Manross wrote:

> Greetings,
>
> I finally figured out a way to map my terrain data from a cartesian grid
> to a radar-centric polar grid (This makes my data processing easier to
> code and hopefully more efficient).  I'm trying to display the data
> using Display.Radius and Display.Longitude since the data are now in a
> polar grid.  Is there any way to eliminate the "hole" at the center of
> such a plot?  The cursor coordinates within this hole (using the
> standard middle mouse button readout) display an area of range < 0;
>
> I have a sample program and associated terrain file at:
>
> ftp://ftp.nssl.noaa.gov/users/kmanross/
>
> (you'll need to unzip the .nc file).
>
> Thanks!!
>
> -kevin.


 
 
  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