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

C++ interface problems

All,

Currently I'm trying to use the libnetcdf_c++.a interface in a fairly 
simple program on an SGI OCTANE running IRIX 6.5.3.  While everything
has been compiled and the tests check out fine, a bug has cropped up that
is inexplicable:  The following lines of code 

cerr << "Is it valid?  " << output_file.is_valid() << endl;
cerr << "What is the id?  " << output_file.id() << endl;
cerr << "Is Latitude valid? " << output_file.get_var("Latitude")->is_valid() << 
endl;

elicits the following output

Is it valid?  1
What is the id?  3
ncvarid: ncid 3: Not a netCDF id

Any hints?

Thanks in advance....
-- 
                                        Gregory J. Orris 
                                        Code 7140
                                        Naval Research Laboratory
                                        Washington, D.C. 20375
                                        tel: 202-404-4827
                                        fax: 202-404-7732
                                        e-mail: orris@xxxxxxxxxxxxxxxxxx

 
 
  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