NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

question of char

  • Subject: question of char
  • From: mazurier <mazurier@xxxxxxx>
  • Date: Mon, 28 Feb 2000 14:14:57 +0100
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

  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: