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.

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



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