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

Re: How to deal with the missing data

Hi-

Wang Lizhi wrote:
> Hi,
> 
> I want to display some 2D/3D data, but I'm not sure whether visad can deal 
> with the missing data, or how to do it?

Missing data is indicated by NaNs in VisAD.  If you are
reading from a netCDF file, there are conventions for
indicating missing data using attributes.  See:

http://www.unidata.ucar.edu/software/netcdf/docs/netcdf/Attribute-Conventions.html#Attribute-Conventions

if you have your own adapter, it will need to convert
from the file values to NaN's in the VisAD Data object.

For display, you can use the GraphicModeControl or
a ConstantMap to set missing values transparent.

Don Murray
> thanks
> ##########################################################################
> 
>   WANG Lizhi
> 
>   Key Laboratory of Regional Climate-Environment for East Asia,
>   START/RRC Temperate East Asia, Institute of
>   Atmospheric Physics, Chinese Academy of Sciences
> 
>   Tel(O)  :  86-10-62063389
>   Fax(O)  :  86-10-62045230
>   E-mail  :  wlz@xxxxxxxxx
>   Address :  P.O.Box 9804,Beijing 100029,  P.R.China
> ##########################################################################
> 
> ==============================================================================
> To unsubscribe visad, visit:
> http://www.unidata.ucar.edu/mailing-list-delete-form.html
> ==============================================================================

-- 
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************


==============================================================================
To unsubscribe visad, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


 
 
  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