Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

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: