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

ncgen problem

I have encountered an apparent bug in ncgen.
It is demonstrated by following Bourne/Korn shell script:

ncgen -b <<\END-OF-CDL
netcdf t {
variables:
        float x;
                x:add_offset = -1e-16;
}
END-OF-CDL
ncdump -h t.nc

This generates following output:

netcdf t {

variables:
        float x ;
                x:add_offset = -1e-16. ;
}

Note that there is a '.' following '-1e-16'
This causes a syntax error when piped to ncgen.


Harvey Davies,                              Home: +61 3 772 5199
CSIRO Division of Atmospheric Research,     Work: +61 3 586 7574
Private Bag No. 1, Mordialloc,               Fax: +61 3 586 7600
Victoria 3195,  Australia                 E-mail: hld@xxxxxxxxxxxx



 
 
  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