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.

[netcdfgroup] Strange new ncgen behavior

Something that wasn't happening with netcdf3.6 is now happening with 4.1.1

The test.cdl is
netcdf test {
dimensions:
    isochar = 19 ;
    ncenters = UNLIMITED ; // (2 currently)

variables:
    char center(ncenters,isochar) ;

// global attributes:
        :history = "testing" ;

data:

 center =
  "atcf",
  "hurdat_atl" ;

}
using
$ ncgen test.cdl -o test.nc
$ ncdump test.nc
> The result only shows "atcf" for variable /center/

However, if I change "atcf" to "atcf_____" to equal length as "hurdat_atl", then the resulting test.nc is correct (both atcf____ and hurdat_atl are listed in the variable output. However, the converse is not true: if I shorten "hurdat_atl" to "hurd" (same length as "atcf") then I still only get "atcf" for the center variable.

This seems like a bug or at least a new feature of ncgen.

Your thoughts?
-Ken

--
Ken Knapp
Remote Sensing and Applications Division
National Climatic Data Center
151 Patton Ave
Asheville, NC 28801
828-271-4339 (voice) 828-271-4328 (fax)
IBTrACS:  http://www.ncdc.noaa.gov/oa/ibtracs/
ISCCP B1: http://www.ncdc.noaa.gov/oa/rsad/isccpb1/
HURSAT:   http://www.ncdc.noaa.gov/oa/rsad/hursat/

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