This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>To: address@hidden >From: Harvey DAVIES <address@hidden> >Subject: ncgen problem report >Organization: CSIRO Mathematical and Information Sciences >Keywords: 199701100800.BAA18042 Hi Harvey, > Using following version of ncgen: > $Id: ncgen.y,v 1.43 1996/08/09 18:38:40 russ Exp $ > $Id: xdrposix.c,v 1.30 1996/02/15 21:47:28 steve Exp $ > > ncgen rejects cdl file specifying nothing except a global attribute. > > E.g. > echo 'netcdf n{ :a = 9; }' | ncgen -o n.nc > gives message > ncgen: -: syntax error Thanks for reporting the problem. It's fixed in the netcdf-3 ncgen, but I think the fix causes a yacc shift/reduce conflict that I haven't figured out how to resolve. I'll put it on my list ... --Russ