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.

Re: [netcdfgroup] Strange new ncgen behavior

Some time ago, Ken Knapp (below) pointed out a bug in ncgen.
I have since done a complete rewrite of the way
character datalists are handled in ncgen.
This rewrite is now in the nightly snapshot.
=Dennis Heimbigner
 Unidata



Ken Knapp wrote:
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


------------------------------------------------------------------------

_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/



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