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

question of char

Hello 

Sorry if my question is obvious.
I would like to create a netcdf file with a variable
containing two strings which it is like this example


netcdf fileTOTO {
dimensions:
        nbData = UNLIMITED ; // (X currently)
        numberOfChar = 255 ;
        numberOfField = 2 ;
variables:
        char COD_CAPTEUR(?????) ;
data:

 COD_CAPTEUR
  "hello world","hello USA"
  "hello France","hello Russ"
  "xxxxx" "xxxxx"
   ....
  "xxxxx" "xxxxx";

I don't know how to declare my variable and if it possible ?
I'am using C++ with netcdf-3.4 on Sun Solaris 2.6.

Thank you for help
Alain
-- 
http://www.shom.fr
EPSHOM/GG/SMF : Tel.: 33 (0)2 98.22.17.73 - mazurier@xxxxxxx

 
 
  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