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

Re: Accessing netCDF text variables

Cristy,

>Date: Thu, 21 May 1998 14:55:11 -0400 (EDT)
>From: Cristy <cristy@xxxxxxxxxxxxxxxxxxxx>
>To: visad-list@xxxxxxxxxxxxx
>Subject: Accessing netCDF text variables

In the above message, you wrote:

> My CDL file looks like this:
> 
>   dimensions:
>     x = 40;
>     y = 30;
>     max_stem_length = 20;
>   variables:
>     double documents(y,x);
>       documents:long_name = "documents";
>     char stems(x,y,max_stem_length);
>   data:
>     documents = 74, 13, 24, ...
>     stems
>       "retract",
>       "duPont",
>       "thermoform",
> 
> I can now access the values for x, y, and documents thanks to help from
> Steve and Bill.  I am currently having great difficulty figuring out
> how to access the textual stem information.

Unfortunately, the Java netCDF packge doesn't yet support access to text
variables (though it does support access to text attributes).  When that
capability is available in the Java netCDF package then it will be
incorporated into VisAD.

--------
Steve Emmerson   <http://www.unidata.ucar.edu>

 
 
  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