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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #CWQ-443437]: ncgen problem



Hi David,

The syntax for declaration of a global attribute is wrong.  Where you have

// global attributes:

	grid_type = "REGULAR" ;

it should instead be

// global attributes:

	:grid_type = "REGULAR" ;

(that is, you need a ":" before the name of the global attribute).

With that fix, I think everything will work fine.  I just tried it with the
current netcdf-3.6.2 version, and

  ncgen -f NetCDF_2d.cdl > ng.f

generated a Fortran-77 program, ng.f, that compiled and ran just fine, creating
the file NetCDF_2d.nc, which when run through ncdump showed the file was
created that matched the CDL you specified.

--Russ

Russ Rew                                         UCAR Unidata Program
russ@xxxxxxxxxxxxxxxx                     http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: CWQ-443437
Department: Support netCDF
Priority: Normal
Status: Closed


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of 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