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